Skip to content

Commit

Permalink
fix database migrations
Browse files Browse the repository at this point in the history
  • Loading branch information
suxrobGM committed Jul 6, 2023
1 parent fcf74e4 commit a21bbbd
Show file tree
Hide file tree
Showing 7 changed files with 20 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ public static class TenantConsts
{
public const int NameLength = 16;
public const int DisplayNameLength = 64;
public const int ConnectionStringLength = 128;
public const int ConnectionStringLength = 256;
}

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ protected override void Up(MigrationBuilder migrationBuilder)
Id = table.Column<string>(type: "nvarchar(450)", nullable: false),
Name = table.Column<string>(type: "nvarchar(16)", maxLength: 16, nullable: true),
DisplayName = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: true),
ConnectionString = table.Column<string>(type: "nvarchar(128)", maxLength: 128, nullable: true),
ConnectionString = table.Column<string>(type: "nvarchar(256)", maxLength: 256, nullable: true),
Timestamp = table.Column<DateTime>(type: "datetime2", nullable: false),
Created = table.Column<DateTime>(type: "datetime2", nullable: false),
CreatedBy = table.Column<string>(type: "nvarchar(max)", nullable: true),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ protected override void BuildModel(ModelBuilder modelBuilder)
#pragma warning disable 612, 618
modelBuilder
.HasAnnotation("ProductVersion", "7.0.5")
.HasAnnotation("Proxies:ChangeTracking", false)
.HasAnnotation("Proxies:CheckEquality", false)
.HasAnnotation("Proxies:LazyLoading", true)
.HasAnnotation("Relational:MaxIdentifierLength", 128);

SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder);
Expand Down Expand Up @@ -71,8 +74,8 @@ protected override void BuildModel(ModelBuilder modelBuilder)
.HasColumnType("nvarchar(450)");
b.Property<string>("ConnectionString")
.HasMaxLength(128)
.HasColumnType("nvarchar(128)");
.HasMaxLength(256)
.HasColumnType("nvarchar(256)");
b.Property<DateTime>("Created")
.HasColumnType("datetime2");
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ protected override void BuildModel(ModelBuilder modelBuilder)
#pragma warning disable 612, 618
modelBuilder
.HasAnnotation("ProductVersion", "7.0.5")
.HasAnnotation("Proxies:ChangeTracking", false)
.HasAnnotation("Proxies:CheckEquality", false)
.HasAnnotation("Proxies:LazyLoading", true)
.HasAnnotation("Relational:MaxIdentifierLength", 128);

SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder);
Expand Down

0 comments on commit a21bbbd

Please sign in to comment.