-
Notifications
You must be signed in to change notification settings - Fork 82
/
Copy path20210922112630_AddDataProtectionKeys.cs
74 lines (65 loc) · 2.47 KB
/
20210922112630_AddDataProtectionKeys.cs
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace Damselfly.Core.Migrations
{
public partial class AddDataProtectionKeys : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.CreateTable(
name: "DataProtectionKeys",
columns: table => new
{
Id = table.Column<int>(type: "INTEGER", nullable: false)
.Annotation("Sqlite:Autoincrement", true),
FriendlyName = table.Column<string>(type: "TEXT", nullable: true),
Xml = table.Column<string>(type: "TEXT", nullable: true)
},
constraints: table =>
{
table.PrimaryKey("PK_DataProtectionKeys", x => x.Id);
});
migrationBuilder.UpdateData(
table: "Roles",
keyColumn: "Id",
keyValue: 1,
column: "ConcurrencyStamp",
value: "36e9bf82-6ad6-46a7-b7b2-4b96a8d2ead3");
migrationBuilder.UpdateData(
table: "Roles",
keyColumn: "Id",
keyValue: 2,
column: "ConcurrencyStamp",
value: "e83efc33-70e8-417f-a059-68c1849d5d00");
migrationBuilder.UpdateData(
table: "Roles",
keyColumn: "Id",
keyValue: 3,
column: "ConcurrencyStamp",
value: "37926f58-3d82-439d-b148-fefaa5fbed37");
}
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropTable(
name: "DataProtectionKeys");
migrationBuilder.UpdateData(
table: "Roles",
keyColumn: "Id",
keyValue: 1,
column: "ConcurrencyStamp",
value: "51edafb5-82a2-4567-9bc5-cb9ff30c1935");
migrationBuilder.UpdateData(
table: "Roles",
keyColumn: "Id",
keyValue: 2,
column: "ConcurrencyStamp",
value: "c77e8b3e-d3c2-451c-865b-c5d00b38c729");
migrationBuilder.UpdateData(
table: "Roles",
keyColumn: "Id",
keyValue: 3,
column: "ConcurrencyStamp",
value: "218160f1-65f9-4ff1-ad2d-4c3e8b59c916");
}
}
}