Skip to content

Commit

Permalink
Merge pull request #238 from bcgov/bugfix/AB#10699-length-updates-merge
Browse files Browse the repository at this point in the history
bugfix/AB#10699 - increase length of app fields
  • Loading branch information
don-aot authored Dec 8, 2023
2 parents 12da4ee + e8edb35 commit 79f040a
Show file tree
Hide file tree
Showing 4 changed files with 3,458 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ protected override void OnModelCreating(ModelBuilder modelBuilder)

b.Property(x => x.ProgramName)
.IsRequired()
.HasMaxLength(250);
.HasMaxLength(255);

b.HasIndex(x => x.ProgramName);
});
Expand Down Expand Up @@ -147,7 +147,7 @@ protected override void OnModelCreating(ModelBuilder modelBuilder)
b.ConfigureByConvention();
b.Property(x => x.ApplicantName)
.IsRequired()
.HasMaxLength(250);
.HasMaxLength(600);

b.HasIndex(x => x.ApplicantName);
});
Expand All @@ -167,7 +167,7 @@ protected override void OnModelCreating(ModelBuilder modelBuilder)
GrantManagerConsts.DbSchema);

b.ConfigureByConvention(); //auto configure for the base class props
b.Property(x => x.ApplicationFormName).IsRequired().HasMaxLength(250);
b.Property(x => x.ApplicationFormName).IsRequired().HasMaxLength(255);

b.HasOne<Intake>().WithMany().HasForeignKey(x => x.IntakeId).IsRequired();
});
Expand All @@ -194,7 +194,7 @@ protected override void OnModelCreating(ModelBuilder modelBuilder)
GrantManagerConsts.DbSchema);

b.ConfigureByConvention(); //auto configure for the base class props
b.Property(x => x.ProjectName).IsRequired().HasMaxLength(250);
b.Property(x => x.ProjectName).IsRequired().HasMaxLength(255);
b.Property(x => x.Payload).HasColumnType("jsonb");
b.HasOne<ApplicationForm>().WithMany().HasForeignKey(x => x.ApplicationFormId).IsRequired();
b.HasOne<Applicant>().WithMany().HasForeignKey(x => x.ApplicantId).IsRequired();
Expand Down
Loading

0 comments on commit 79f040a

Please sign in to comment.