mirror of
https://github.com/bitwarden/server.git
synced 2025-06-30 07:36:14 -05:00
Sync EF migrations for .NET / EF Core 8 (#4448)
* Sync EF migrations for .NET 8 * Format * Redo migrations with billing fix * Forgot to format again
This commit is contained in:
@ -18,7 +18,7 @@ namespace Bit.PostgresMigrations.Migrations
|
||||
#pragma warning disable 612, 618
|
||||
modelBuilder
|
||||
.HasAnnotation("Npgsql:CollationDefinition:postgresIndetermanisticCollation", "en-u-ks-primary,en-u-ks-primary,icu,False")
|
||||
.HasAnnotation("ProductVersion", "7.0.16")
|
||||
.HasAnnotation("ProductVersion", "8.0.6")
|
||||
.HasAnnotation("Relational:MaxIdentifierLength", 63);
|
||||
|
||||
NpgsqlModelBuilderExtensions.UseIdentityByDefaultColumns(modelBuilder);
|
||||
@ -696,19 +696,23 @@ namespace Bit.PostgresMigrations.Migrations
|
||||
.HasColumnType("integer");
|
||||
|
||||
b.Property<string>("ClientName")
|
||||
.HasColumnType("text");
|
||||
.HasMaxLength(50)
|
||||
.HasColumnType("character varying(50)");
|
||||
|
||||
b.Property<DateTime>("Created")
|
||||
.HasColumnType("timestamp with time zone");
|
||||
|
||||
b.Property<string>("InvoiceId")
|
||||
.HasColumnType("text");
|
||||
.HasMaxLength(50)
|
||||
.HasColumnType("character varying(50)");
|
||||
|
||||
b.Property<string>("InvoiceNumber")
|
||||
.HasColumnType("text");
|
||||
.HasMaxLength(50)
|
||||
.HasColumnType("character varying(50)");
|
||||
|
||||
b.Property<string>("PlanName")
|
||||
.HasColumnType("text");
|
||||
.HasMaxLength(50)
|
||||
.HasColumnType("character varying(50)");
|
||||
|
||||
b.Property<Guid>("ProviderId")
|
||||
.HasColumnType("uuid");
|
||||
@ -723,9 +727,6 @@ namespace Bit.PostgresMigrations.Migrations
|
||||
|
||||
b.HasIndex("ProviderId");
|
||||
|
||||
b.HasIndex("Id", "InvoiceId")
|
||||
.IsUnique();
|
||||
|
||||
b.ToTable("ProviderInvoiceItem", (string)null);
|
||||
});
|
||||
|
||||
@ -1563,7 +1564,8 @@ namespace Bit.PostgresMigrations.Migrations
|
||||
|
||||
b.Property<string>("Discriminator")
|
||||
.IsRequired()
|
||||
.HasColumnType("text");
|
||||
.HasMaxLength(34)
|
||||
.HasColumnType("character varying(34)");
|
||||
|
||||
b.Property<bool>("Read")
|
||||
.HasColumnType("boolean");
|
||||
|
Reference in New Issue
Block a user