summaryrefslogtreecommitdiff
path: root/Migrations/HBContextModelSnapshot.cs
diff options
context:
space:
mode:
authorJake Mannens <jake@asger.xyz>2023-08-28 15:45:21 +1000
committerJake Mannens <jake@asger.xyz>2023-08-28 15:45:21 +1000
commit3be6ef65f4ecdfc564231b9e613b8a307dfdbe64 (patch)
treee7608e3d477073be45d76677ad5f0b2509e423c1 /Migrations/HBContextModelSnapshot.cs
parentb8abec12a28f07e898b9ad38575fc1765188c286 (diff)
Gallery media is now filtered by tag using Object IDs rather than Guids, signficantly reducing DB overhead
Diffstat (limited to 'Migrations/HBContextModelSnapshot.cs')
-rw-r--r--Migrations/HBContextModelSnapshot.cs6
1 files changed, 3 insertions, 3 deletions
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<DateTime>("CreateTime")
.HasColumnType("timestamp with time zone");
- b.Property<int>("TagDefinitionObjectId")
+ b.Property<int>("TagDefinitionId")
.HasColumnType("integer");
b.Property<int>("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();