summaryrefslogtreecommitdiff
path: root/Migrations/20230818012410_SeedGuids.cs
diff options
context:
space:
mode:
authorJake Mannens <jake@asger.xyz>2023-08-19 00:36:30 +1000
committerJake Mannens <jake@asger.xyz>2023-08-19 00:36:30 +1000
commitdfff79815acc86c02dd94716098d409d3fe46ab7 (patch)
treeefb5d4176a9b094b3b40b1a968789931cc861d54 /Migrations/20230818012410_SeedGuids.cs
parenta57b6ea2e174cedb04a422a05a180f377ed4c448 (diff)
Added basic search engine functionality
Diffstat (limited to 'Migrations/20230818012410_SeedGuids.cs')
-rw-r--r--Migrations/20230818012410_SeedGuids.cs47
1 files changed, 47 insertions, 0 deletions
diff --git a/Migrations/20230818012410_SeedGuids.cs b/Migrations/20230818012410_SeedGuids.cs
new file mode 100644
index 0000000..47749f7
--- /dev/null
+++ b/Migrations/20230818012410_SeedGuids.cs
@@ -0,0 +1,47 @@
+using System;
+using Microsoft.EntityFrameworkCore.Migrations;
+
+#nullable disable
+
+namespace HyperBooru.Migrations
+{
+ /// <inheritdoc />
+ public partial class SeedGuids : Migration
+ {
+ /// <inheritdoc />
+ protected override void Up(MigrationBuilder migrationBuilder)
+ {
+ migrationBuilder.UpdateData(
+ table: "Objects",
+ keyColumn: "ObjectId",
+ keyValue: -2,
+ column: "Guid",
+ value: new Guid("ea212801-5bcc-4c0e-814f-fb9d30db58bc"));
+
+ migrationBuilder.UpdateData(
+ table: "Objects",
+ keyColumn: "ObjectId",
+ keyValue: -1,
+ column: "Guid",
+ value: new Guid("ebdad4f8-455a-4351-8017-1d4854d6fa38"));
+ }
+
+ /// <inheritdoc />
+ protected override void Down(MigrationBuilder migrationBuilder)
+ {
+ migrationBuilder.UpdateData(
+ table: "Objects",
+ keyColumn: "ObjectId",
+ keyValue: -2,
+ column: "Guid",
+ value: new Guid("bab0a0f2-b126-429c-a80e-4f339a1f4bb2"));
+
+ migrationBuilder.UpdateData(
+ table: "Objects",
+ keyColumn: "ObjectId",
+ keyValue: -1,
+ column: "Guid",
+ value: new Guid("e906ff13-ee7d-4eb2-826b-1cf880590f6b"));
+ }
+ }
+}