From 02670870b2711db0984f492d452a90477c67608a Mon Sep 17 00:00:00 2001 From: Jake Mannens Date: Fri, 20 Oct 2023 14:26:02 +1100 Subject: Gallery --- Migrations/HBContextModelSnapshot.cs | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) (limited to 'Migrations/HBContextModelSnapshot.cs') 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("DisplayName") - .IsRequired() - .HasColumnType("text"); - b.Property("Name") .IsRequired() .HasColumnType("text"); @@ -196,7 +192,7 @@ namespace HyperBooru.Migrations { b.HasBaseType("HyperBooru.HBObject"); - b.Property("CurrentUploadedFileId") + b.Property("CurrentUploadedFileId") .HasColumnType("integer"); b.Property("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() -- cgit v1.3