tgstation-server 6.12.0
The /tg/station 13 server suite
Loading...
Searching...
No Matches
20240420153929_MYNormalizeVersionUpdates.cs
Go to the documentation of this file.
1using System;
2
3using Microsoft.EntityFrameworkCore.Metadata;
4using Microsoft.EntityFrameworkCore.Migrations;
5
7{
9 public partial class MYNormalizeVersionUpdates : Migration
10 {
12 protected override void Up(MigrationBuilder migrationBuilder)
13 {
14 ArgumentNullException.ThrowIfNull(migrationBuilder);
15
16 migrationBuilder.AlterColumn<long>(
17 name: "Id",
18 table: "Users",
19 type: "bigint",
20 nullable: false,
21 oldClrType: typeof(long),
22 oldType: "bigint")
23 .Annotation("MySql:ValueGenerationStrategy", MySqlValueGenerationStrategy.IdentityColumn);
24
25 migrationBuilder.AlterColumn<long>(
26 name: "Id",
27 table: "TestMerges",
28 type: "bigint",
29 nullable: false,
30 oldClrType: typeof(long),
31 oldType: "bigint")
32 .Annotation("MySql:ValueGenerationStrategy", MySqlValueGenerationStrategy.IdentityColumn);
33
34 migrationBuilder.AlterColumn<long>(
35 name: "Id",
36 table: "RevisionInformations",
37 type: "bigint",
38 nullable: false,
39 oldClrType: typeof(long),
40 oldType: "bigint")
41 .Annotation("MySql:ValueGenerationStrategy", MySqlValueGenerationStrategy.IdentityColumn);
42
43 migrationBuilder.AlterColumn<long>(
44 name: "Id",
45 table: "RevInfoTestMerges",
46 type: "bigint",
47 nullable: false,
48 oldClrType: typeof(long),
49 oldType: "bigint")
50 .Annotation("MySql:ValueGenerationStrategy", MySqlValueGenerationStrategy.IdentityColumn);
51
52 migrationBuilder.AlterColumn<long>(
53 name: "Id",
54 table: "RepositorySettings",
55 type: "bigint",
56 nullable: false,
57 oldClrType: typeof(long),
58 oldType: "bigint")
59 .Annotation("MySql:ValueGenerationStrategy", MySqlValueGenerationStrategy.IdentityColumn);
60
61 migrationBuilder.AlterColumn<long>(
62 name: "Id",
63 table: "ReattachInformations",
64 type: "bigint",
65 nullable: false,
66 oldClrType: typeof(long),
67 oldType: "bigint")
68 .Annotation("MySql:ValueGenerationStrategy", MySqlValueGenerationStrategy.IdentityColumn);
69
70 migrationBuilder.AlterColumn<long>(
71 name: "Id",
72 table: "PermissionSets",
73 type: "bigint",
74 nullable: false,
75 oldClrType: typeof(long),
76 oldType: "bigint")
77 .Annotation("MySql:ValueGenerationStrategy", MySqlValueGenerationStrategy.IdentityColumn);
78
79 migrationBuilder.AlterColumn<long>(
80 name: "Id",
81 table: "OAuthConnections",
82 type: "bigint",
83 nullable: false,
84 oldClrType: typeof(long),
85 oldType: "bigint")
86 .Annotation("MySql:ValueGenerationStrategy", MySqlValueGenerationStrategy.IdentityColumn);
87
88 migrationBuilder.AlterColumn<long>(
89 name: "Id",
90 table: "Jobs",
91 type: "bigint",
92 nullable: false,
93 oldClrType: typeof(long),
94 oldType: "bigint")
95 .Annotation("MySql:ValueGenerationStrategy", MySqlValueGenerationStrategy.IdentityColumn);
96
97 migrationBuilder.AlterColumn<long>(
98 name: "Id",
99 table: "Instances",
100 type: "bigint",
101 nullable: false,
102 oldClrType: typeof(long),
103 oldType: "bigint")
104 .Annotation("MySql:ValueGenerationStrategy", MySqlValueGenerationStrategy.IdentityColumn);
105
106 migrationBuilder.AlterColumn<long>(
107 name: "Id",
108 table: "InstancePermissionSets",
109 type: "bigint",
110 nullable: false,
111 oldClrType: typeof(long),
112 oldType: "bigint")
113 .Annotation("MySql:ValueGenerationStrategy", MySqlValueGenerationStrategy.IdentityColumn);
114
115 migrationBuilder.AlterColumn<long>(
116 name: "Id",
117 table: "Groups",
118 type: "bigint",
119 nullable: false,
120 oldClrType: typeof(long),
121 oldType: "bigint")
122 .Annotation("MySql:ValueGenerationStrategy", MySqlValueGenerationStrategy.IdentityColumn);
123
124 migrationBuilder.AlterColumn<long>(
125 name: "Id",
126 table: "DreamMakerSettings",
127 type: "bigint",
128 nullable: false,
129 oldClrType: typeof(long),
130 oldType: "bigint")
131 .Annotation("MySql:ValueGenerationStrategy", MySqlValueGenerationStrategy.IdentityColumn);
132
133 migrationBuilder.AlterColumn<long>(
134 name: "Id",
135 table: "DreamDaemonSettings",
136 type: "bigint",
137 nullable: false,
138 oldClrType: typeof(long),
139 oldType: "bigint")
140 .Annotation("MySql:ValueGenerationStrategy", MySqlValueGenerationStrategy.IdentityColumn);
141
142 migrationBuilder.AlterColumn<long>(
143 name: "Id",
144 table: "CompileJobs",
145 type: "bigint",
146 nullable: false,
147 oldClrType: typeof(long),
148 oldType: "bigint")
149 .Annotation("MySql:ValueGenerationStrategy", MySqlValueGenerationStrategy.IdentityColumn);
150
151 migrationBuilder.AlterColumn<long>(
152 name: "Id",
153 table: "ChatChannels",
154 type: "bigint",
155 nullable: false,
156 oldClrType: typeof(long),
157 oldType: "bigint")
158 .Annotation("MySql:ValueGenerationStrategy", MySqlValueGenerationStrategy.IdentityColumn);
159
160 migrationBuilder.AlterColumn<long>(
161 name: "Id",
162 table: "ChatBots",
163 type: "bigint",
164 nullable: false,
165 oldClrType: typeof(long),
166 oldType: "bigint")
167 .Annotation("MySql:ValueGenerationStrategy", MySqlValueGenerationStrategy.IdentityColumn);
168 }
169
171 protected override void Down(MigrationBuilder migrationBuilder)
172 {
173 }
174 }
175}