diff options
| author | Jake Mannens <jake@asger.xyz> | 2023-10-20 14:26:02 +1100 |
|---|---|---|
| committer | Jake Mannens <jake@asger.xyz> | 2023-10-20 14:26:02 +1100 |
| commit | 02670870b2711db0984f492d452a90477c67608a (patch) | |
| tree | a6c15f627535dd962042d2e000c093cf2ae63956 /Migrations/HBContextModelSnapshot.cs | |
| parent | 07728d1048f34e1d048da63684b341ab30bc1d06 (diff) | |
Gallery
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() |
