tgstation-server 6.12.0
The /tg/station 13 server suite
Loading...
Searching...
No Matches
20230401210715_MYAddDreamDaemonLogOutput.cs
Go to the documentation of this file.
1using System;
2
3using Microsoft.EntityFrameworkCore.Migrations;
4
6{
11 public partial class MYAddDreamDaemonLogOutput : Migration
12 {
14 protected override void Up(MigrationBuilder migrationBuilder)
15 {
16 ArgumentNullException.ThrowIfNull(migrationBuilder);
17
18 migrationBuilder.AddColumn<bool>(
19 name: "LogOutput",
20 table: "DreamDaemonSettings",
21 type: "tinyint(1)",
22 nullable: false,
23 defaultValue: false);
24 }
25
27 protected override void Down(MigrationBuilder migrationBuilder)
28 {
29 ArgumentNullException.ThrowIfNull(migrationBuilder);
30
31 migrationBuilder.DropColumn(
32 name: "LogOutput",
33 table: "DreamDaemonSettings");
34
35 migrationBuilder.AlterColumn<string>(
36 name: "PasswordHash",
37 table: "Users",
38 type: "longtext CHARACTER SET utf8mb4",
39 nullable: true,
40 oldClrType: typeof(string),
41 oldType: "longtext",
42 oldNullable: true)
43 .Annotation("MySql:CharSet", "utf8mb4")
44 .OldAnnotation("MySql:CharSet", "utf8mb4");
45
46 migrationBuilder.AlterColumn<string>(
47 name: "Url",
48 table: "TestMerges",
49 type: "longtext CHARACTER SET utf8mb4",
50 nullable: false,
51 oldClrType: typeof(string),
52 oldType: "longtext")
53 .Annotation("MySql:CharSet", "utf8mb4")
54 .OldAnnotation("MySql:CharSet", "utf8mb4");
55
56 migrationBuilder.AlterColumn<string>(
57 name: "TitleAtMerge",
58 table: "TestMerges",
59 type: "longtext CHARACTER SET utf8mb4",
60 nullable: false,
61 oldClrType: typeof(string),
62 oldType: "longtext")
63 .Annotation("MySql:CharSet", "utf8mb4")
64 .OldAnnotation("MySql:CharSet", "utf8mb4");
65
66 migrationBuilder.AlterColumn<string>(
67 name: "Comment",
68 table: "TestMerges",
69 type: "longtext CHARACTER SET utf8mb4",
70 maxLength: 10000,
71 nullable: true,
72 oldClrType: typeof(string),
73 oldType: "longtext",
74 oldMaxLength: 10000,
75 oldNullable: true)
76 .Annotation("MySql:CharSet", "utf8mb4")
77 .OldAnnotation("MySql:CharSet", "utf8mb4");
78
79 migrationBuilder.AlterColumn<string>(
80 name: "BodyAtMerge",
81 table: "TestMerges",
82 type: "longtext CHARACTER SET utf8mb4",
83 nullable: false,
84 oldClrType: typeof(string),
85 oldType: "longtext")
86 .Annotation("MySql:CharSet", "utf8mb4")
87 .OldAnnotation("MySql:CharSet", "utf8mb4");
88
89 migrationBuilder.AlterColumn<string>(
90 name: "Author",
91 table: "TestMerges",
92 type: "longtext CHARACTER SET utf8mb4",
93 nullable: false,
94 oldClrType: typeof(string),
95 oldType: "longtext")
96 .Annotation("MySql:CharSet", "utf8mb4")
97 .OldAnnotation("MySql:CharSet", "utf8mb4");
98
99 migrationBuilder.AlterColumn<string>(
100 name: "CommitterName",
101 table: "RepositorySettings",
102 type: "longtext CHARACTER SET utf8mb4",
103 maxLength: 10000,
104 nullable: false,
105 oldClrType: typeof(string),
106 oldType: "longtext",
107 oldMaxLength: 10000)
108 .Annotation("MySql:CharSet", "utf8mb4")
109 .OldAnnotation("MySql:CharSet", "utf8mb4");
110
111 migrationBuilder.AlterColumn<string>(
112 name: "CommitterEmail",
113 table: "RepositorySettings",
114 type: "longtext CHARACTER SET utf8mb4",
115 maxLength: 10000,
116 nullable: false,
117 oldClrType: typeof(string),
118 oldType: "longtext",
119 oldMaxLength: 10000)
120 .Annotation("MySql:CharSet", "utf8mb4")
121 .OldAnnotation("MySql:CharSet", "utf8mb4");
122
123 migrationBuilder.AlterColumn<string>(
124 name: "AccessUser",
125 table: "RepositorySettings",
126 type: "longtext CHARACTER SET utf8mb4",
127 maxLength: 10000,
128 nullable: true,
129 oldClrType: typeof(string),
130 oldType: "longtext",
131 oldMaxLength: 10000,
132 oldNullable: true)
133 .Annotation("MySql:CharSet", "utf8mb4")
134 .OldAnnotation("MySql:CharSet", "utf8mb4");
135
136 migrationBuilder.AlterColumn<string>(
137 name: "AccessToken",
138 table: "RepositorySettings",
139 type: "longtext CHARACTER SET utf8mb4",
140 maxLength: 10000,
141 nullable: true,
142 oldClrType: typeof(string),
143 oldType: "longtext",
144 oldMaxLength: 10000,
145 oldNullable: true)
146 .Annotation("MySql:CharSet", "utf8mb4")
147 .OldAnnotation("MySql:CharSet", "utf8mb4");
148
149 migrationBuilder.AlterColumn<string>(
150 name: "AccessIdentifier",
151 table: "ReattachInformations",
152 type: "longtext CHARACTER SET utf8mb4",
153 nullable: false,
154 oldClrType: typeof(string),
155 oldType: "longtext")
156 .Annotation("MySql:CharSet", "utf8mb4")
157 .OldAnnotation("MySql:CharSet", "utf8mb4");
158
159 migrationBuilder.AlterColumn<string>(
160 name: "ExceptionDetails",
161 table: "Jobs",
162 type: "longtext CHARACTER SET utf8mb4",
163 nullable: true,
164 oldClrType: typeof(string),
165 oldType: "longtext",
166 oldNullable: true)
167 .Annotation("MySql:CharSet", "utf8mb4")
168 .OldAnnotation("MySql:CharSet", "utf8mb4");
169
170 migrationBuilder.AlterColumn<string>(
171 name: "Description",
172 table: "Jobs",
173 type: "longtext CHARACTER SET utf8mb4",
174 nullable: false,
175 oldClrType: typeof(string),
176 oldType: "longtext")
177 .Annotation("MySql:CharSet", "utf8mb4")
178 .OldAnnotation("MySql:CharSet", "utf8mb4");
179
180 migrationBuilder.AlterColumn<string>(
181 name: "ProjectName",
182 table: "DreamMakerSettings",
183 type: "longtext CHARACTER SET utf8mb4",
184 maxLength: 10000,
185 nullable: true,
186 oldClrType: typeof(string),
187 oldType: "longtext",
188 oldMaxLength: 10000,
189 oldNullable: true)
190 .Annotation("MySql:CharSet", "utf8mb4")
191 .OldAnnotation("MySql:CharSet", "utf8mb4");
192
193 migrationBuilder.AlterColumn<string>(
194 name: "AdditionalParameters",
195 table: "DreamDaemonSettings",
196 type: "longtext CHARACTER SET utf8mb4",
197 maxLength: 10000,
198 nullable: false,
199 oldClrType: typeof(string),
200 oldType: "longtext",
201 oldMaxLength: 10000)
202 .Annotation("MySql:CharSet", "utf8mb4")
203 .OldAnnotation("MySql:CharSet", "utf8mb4");
204
205 migrationBuilder.AlterColumn<string>(
206 name: "RepositoryOrigin",
207 table: "CompileJobs",
208 type: "longtext CHARACTER SET utf8mb4",
209 nullable: true,
210 oldClrType: typeof(string),
211 oldType: "longtext",
212 oldNullable: true)
213 .Annotation("MySql:CharSet", "utf8mb4")
214 .OldAnnotation("MySql:CharSet", "utf8mb4");
215
216 migrationBuilder.AlterColumn<string>(
217 name: "Output",
218 table: "CompileJobs",
219 type: "longtext CHARACTER SET utf8mb4",
220 nullable: false,
221 oldClrType: typeof(string),
222 oldType: "longtext")
223 .Annotation("MySql:CharSet", "utf8mb4")
224 .OldAnnotation("MySql:CharSet", "utf8mb4");
225
226 migrationBuilder.AlterColumn<string>(
227 name: "DmeName",
228 table: "CompileJobs",
229 type: "longtext CHARACTER SET utf8mb4",
230 nullable: false,
231 oldClrType: typeof(string),
232 oldType: "longtext")
233 .Annotation("MySql:CharSet", "utf8mb4")
234 .OldAnnotation("MySql:CharSet", "utf8mb4");
235
236 migrationBuilder.AlterColumn<string>(
237 name: "ByondVersion",
238 table: "CompileJobs",
239 type: "longtext CHARACTER SET utf8mb4",
240 nullable: false,
241 oldClrType: typeof(string),
242 oldType: "longtext")
243 .Annotation("MySql:CharSet", "utf8mb4")
244 .OldAnnotation("MySql:CharSet", "utf8mb4");
245
246 migrationBuilder.AlterColumn<string>(
247 name: "Tag",
248 table: "ChatChannels",
249 type: "longtext CHARACTER SET utf8mb4",
250 maxLength: 10000,
251 nullable: true,
252 oldClrType: typeof(string),
253 oldType: "longtext",
254 oldMaxLength: 10000,
255 oldNullable: true)
256 .Annotation("MySql:CharSet", "utf8mb4")
257 .OldAnnotation("MySql:CharSet", "utf8mb4");
258
259 migrationBuilder.AlterColumn<string>(
260 name: "ConnectionString",
261 table: "ChatBots",
262 type: "longtext CHARACTER SET utf8mb4",
263 maxLength: 10000,
264 nullable: false,
265 oldClrType: typeof(string),
266 oldType: "longtext",
267 oldMaxLength: 10000)
268 .Annotation("MySql:CharSet", "utf8mb4")
269 .OldAnnotation("MySql:CharSet", "utf8mb4");
270 }
271 }
272}