From 3be6ef65f4ecdfc564231b9e613b8a307dfdbe64 Mon Sep 17 00:00:00 2001 From: Jake Mannens Date: Mon, 28 Aug 2023 15:45:21 +1000 Subject: Gallery media is now filtered by tag using Object IDs rather than Guids, signficantly reducing DB overhead --- Migrations/HBContextModelSnapshot.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'Migrations/HBContextModelSnapshot.cs') diff --git a/Migrations/HBContextModelSnapshot.cs b/Migrations/HBContextModelSnapshot.cs index f0e4b1f..e00f2d8 100644 --- a/Migrations/HBContextModelSnapshot.cs +++ b/Migrations/HBContextModelSnapshot.cs @@ -122,13 +122,13 @@ namespace HyperBooru.Migrations b.Property("CreateTime") .HasColumnType("timestamp with time zone"); - b.Property("TagDefinitionObjectId") + b.Property("TagDefinitionId") .HasColumnType("integer"); b.Property("TargetObjectId") .HasColumnType("integer"); - b.HasIndex("TagDefinitionObjectId"); + b.HasIndex("TagDefinitionId"); b.HasIndex("TargetObjectId"); @@ -216,7 +216,7 @@ namespace HyperBooru.Migrations b.HasOne("HyperBooru.TagDefinition", "TagDefinition") .WithMany() - .HasForeignKey("TagDefinitionObjectId") + .HasForeignKey("TagDefinitionId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); -- cgit v1.3