diff options
Diffstat (limited to 'Migrations/HBContextModelSnapshot.cs')
| -rw-r--r-- | Migrations/HBContextModelSnapshot.cs | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/Migrations/HBContextModelSnapshot.cs b/Migrations/HBContextModelSnapshot.cs index b03b20c..9341db6 100644 --- a/Migrations/HBContextModelSnapshot.cs +++ b/Migrations/HBContextModelSnapshot.cs @@ -17,7 +17,7 @@ namespace HyperBooru.Migrations { #pragma warning disable 612, 618 modelBuilder - .HasAnnotation("ProductVersion", "7.0.11") + .HasAnnotation("ProductVersion", "7.0.12") .HasAnnotation("Relational:MaxIdentifierLength", 63); NpgsqlModelBuilderExtensions.UseIdentityByDefaultColumns(modelBuilder); @@ -107,10 +107,6 @@ namespace HyperBooru.Migrations .IsRequired() .HasColumnType("text"); - b.Property<string>("DisplayName") - .IsRequired() - .HasColumnType("text"); - b.Property<string>("Name") .IsRequired() .HasColumnType("text"); @@ -196,7 +192,7 @@ namespace HyperBooru.Migrations { b.HasBaseType("HyperBooru.HBObject"); - b.Property<int>("CurrentUploadedFileId") + b.Property<int?>("CurrentUploadedFileId") .HasColumnType("integer"); b.Property<string>("LongDescription") @@ -337,7 +333,6 @@ namespace HyperBooru.Migrations new { LocalPrincipalId = -1, - DisplayName = "Administrator", Name = "Administrator", Sid = new byte[] { 1, 1, 0, 0, 0, 0, 0, 5, 18, 0, 0, 0 }, PasswordHash = "P4geAuE2yX/PDRHuJSq74FF5vO782rWz5c0LAQPR8m45DEYAONhu1wYnAn60PSNyjocqEBdnCeKCJfK3sKyuWw==" @@ -405,9 +400,7 @@ namespace HyperBooru.Migrations { b.HasOne("HyperBooru.UploadedFile", "CurrentUploadedFile") .WithOne() - .HasForeignKey("HyperBooru.Media", "CurrentUploadedFileId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); + .HasForeignKey("HyperBooru.Media", "CurrentUploadedFileId"); b.HasOne("HyperBooru.HBObject", null) .WithOne() |
