summaryrefslogtreecommitdiff
path: root/Migrations/20230818012410_SeedGuids.cs
blob: 47749f7e43c4f8af0f2841782eff297a6ddf2439 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
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"));
        }
    }
}