mirror of
https://github.com/bitwarden/server.git
synced 2025-06-30 15:42:48 -05:00
Drop LimitCollectionCreationDeletion
from the database (#4810)
* Drop a MSSQL column * Delete property from `Organization` entity * Generate EF migrations
This commit is contained in:
@ -86,9 +86,6 @@ namespace Bit.SqliteMigrations.Migrations
|
||||
b.Property<bool>("LimitCollectionCreation")
|
||||
.HasColumnType("INTEGER");
|
||||
|
||||
b.Property<bool>("LimitCollectionCreationDeletion")
|
||||
.HasColumnType("INTEGER");
|
||||
|
||||
b.Property<bool>("LimitCollectionDeletion")
|
||||
.HasColumnType("INTEGER");
|
||||
|
||||
@ -1133,35 +1130,6 @@ namespace Bit.SqliteMigrations.Migrations
|
||||
b.ToTable("GroupUser", (string)null);
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Bit.Infrastructure.EntityFramework.Models.Installation", b =>
|
||||
{
|
||||
b.Property<Guid>("Id")
|
||||
.HasColumnType("TEXT");
|
||||
|
||||
b.Property<DateTime>("CreationDate")
|
||||
.HasColumnType("TEXT");
|
||||
|
||||
b.Property<string>("Email")
|
||||
.IsRequired()
|
||||
.HasMaxLength(256)
|
||||
.HasColumnType("TEXT");
|
||||
|
||||
b.Property<bool>("Enabled")
|
||||
.HasColumnType("INTEGER");
|
||||
|
||||
b.Property<string>("Key")
|
||||
.IsRequired()
|
||||
.HasMaxLength(150)
|
||||
.HasColumnType("TEXT");
|
||||
|
||||
b.Property<DateTime?>("LastActivityDate")
|
||||
.HasColumnType("TEXT");
|
||||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.ToTable("Installation", (string)null);
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Bit.Infrastructure.EntityFramework.Models.OrganizationApiKey", b =>
|
||||
{
|
||||
b.Property<Guid>("Id")
|
||||
@ -1737,6 +1705,35 @@ namespace Bit.SqliteMigrations.Migrations
|
||||
b.ToTable("NotificationStatus", (string)null);
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Bit.Infrastructure.EntityFramework.Platform.Installation", b =>
|
||||
{
|
||||
b.Property<Guid>("Id")
|
||||
.HasColumnType("TEXT");
|
||||
|
||||
b.Property<DateTime>("CreationDate")
|
||||
.HasColumnType("TEXT");
|
||||
|
||||
b.Property<string>("Email")
|
||||
.IsRequired()
|
||||
.HasMaxLength(256)
|
||||
.HasColumnType("TEXT");
|
||||
|
||||
b.Property<bool>("Enabled")
|
||||
.HasColumnType("INTEGER");
|
||||
|
||||
b.Property<string>("Key")
|
||||
.IsRequired()
|
||||
.HasMaxLength(150)
|
||||
.HasColumnType("TEXT");
|
||||
|
||||
b.Property<DateTime?>("LastActivityDate")
|
||||
.HasColumnType("TEXT");
|
||||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.ToTable("Installation", (string)null);
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Bit.Infrastructure.EntityFramework.SecretsManager.Models.AccessPolicy", b =>
|
||||
{
|
||||
b.Property<Guid>("Id")
|
||||
@ -2362,7 +2359,7 @@ namespace Bit.SqliteMigrations.Migrations
|
||||
|
||||
modelBuilder.Entity("Bit.Infrastructure.EntityFramework.Billing.Models.OrganizationInstallation", b =>
|
||||
{
|
||||
b.HasOne("Bit.Infrastructure.EntityFramework.Models.Installation", "Installation")
|
||||
b.HasOne("Bit.Infrastructure.EntityFramework.Platform.Installation", "Installation")
|
||||
.WithMany()
|
||||
.HasForeignKey("InstallationId")
|
||||
.OnDelete(DeleteBehavior.Cascade)
|
||||
|
Reference in New Issue
Block a user