11 protected override void Up(MigrationBuilder migrationBuilder)
13 ArgumentNullException.ThrowIfNull(migrationBuilder);
15 migrationBuilder.RenameColumn(
17 table:
"InstancePermissionSets",
18 newName:
"EngineRights");
20 migrationBuilder.RenameColumn(
23 newName:
"EngineVersion");
25 migrationBuilder.AlterColumn<decimal>(
26 name:
"InstanceManagerRights",
27 table:
"PermissionSets",
28 type:
"numeric(20,0)",
30 oldClrType: typeof(decimal),
31 oldType:
"numeric(20)");
33 migrationBuilder.AlterColumn<decimal>(
34 name:
"AdministrationRights",
35 table:
"PermissionSets",
36 type:
"numeric(20,0)",
38 oldClrType: typeof(decimal),
39 oldType:
"numeric(20)");
41 migrationBuilder.AlterColumn<decimal>(
42 name:
"CancelRightsType",
44 type:
"numeric(20,0)",
46 oldClrType: typeof(decimal),
47 oldType:
"numeric(20)",
50 migrationBuilder.AlterColumn<decimal>(
53 type:
"numeric(20,0)",
55 oldClrType: typeof(decimal),
56 oldType:
"numeric(20)",
59 migrationBuilder.AlterColumn<decimal>(
60 name:
"RepositoryRights",
61 table:
"InstancePermissionSets",
62 type:
"numeric(20,0)",
64 oldClrType: typeof(decimal),
65 oldType:
"numeric(20)");
67 migrationBuilder.AlterColumn<decimal>(
68 name:
"InstancePermissionSetRights",
69 table:
"InstancePermissionSets",
70 type:
"numeric(20,0)",
72 oldClrType: typeof(decimal),
73 oldType:
"numeric(20)");
75 migrationBuilder.AlterColumn<decimal>(
76 name:
"DreamMakerRights",
77 table:
"InstancePermissionSets",
78 type:
"numeric(20,0)",
80 oldClrType: typeof(decimal),
81 oldType:
"numeric(20)");
83 migrationBuilder.AlterColumn<decimal>(
84 name:
"DreamDaemonRights",
85 table:
"InstancePermissionSets",
86 type:
"numeric(20,0)",
88 oldClrType: typeof(decimal),
89 oldType:
"numeric(20)");
91 migrationBuilder.AlterColumn<decimal>(
92 name:
"ConfigurationRights",
93 table:
"InstancePermissionSets",
94 type:
"numeric(20,0)",
96 oldClrType: typeof(decimal),
97 oldType:
"numeric(20)");
99 migrationBuilder.AlterColumn<decimal>(
100 name:
"ChatBotRights",
101 table:
"InstancePermissionSets",
102 type:
"numeric(20,0)",
104 oldClrType: typeof(decimal),
105 oldType:
"numeric(20)");
107 migrationBuilder.AlterColumn<decimal>(
108 name:
"EngineRights",
109 table:
"InstancePermissionSets",
110 type:
"numeric(20,0)",
112 oldClrType: typeof(decimal),
113 oldType:
"numeric(20)");
115 migrationBuilder.AlterColumn<decimal>(
116 name:
"DiscordChannelId",
117 table:
"ChatChannels",
118 type:
"numeric(20,0)",
120 oldClrType: typeof(decimal),
121 oldType:
"numeric(20)",
126 protected override void Down(MigrationBuilder migrationBuilder)
128 ArgumentNullException.ThrowIfNull(migrationBuilder);
130 migrationBuilder.RenameColumn(
131 name:
"EngineRights",
132 table:
"InstancePermissionSets",
133 newName:
"ByondRights");
135 migrationBuilder.RenameColumn(
136 name:
"EngineVersion",
137 table:
"CompileJobs",
138 newName:
"ByondVersion");
140 migrationBuilder.AlterColumn<decimal>(
141 name:
"InstanceManagerRights",
142 table:
"PermissionSets",
145 oldClrType: typeof(decimal),
146 oldType:
"numeric(20,0)");
148 migrationBuilder.AlterColumn<decimal>(
149 name:
"AdministrationRights",
150 table:
"PermissionSets",
153 oldClrType: typeof(decimal),
154 oldType:
"numeric(20,0)");
156 migrationBuilder.AlterColumn<decimal>(
157 name:
"CancelRightsType",
161 oldClrType: typeof(decimal),
162 oldType:
"numeric(20,0)",
165 migrationBuilder.AlterColumn<decimal>(
170 oldClrType: typeof(decimal),
171 oldType:
"numeric(20,0)",
174 migrationBuilder.AlterColumn<decimal>(
175 name:
"RepositoryRights",
176 table:
"InstancePermissionSets",
179 oldClrType: typeof(decimal),
180 oldType:
"numeric(20,0)");
182 migrationBuilder.AlterColumn<decimal>(
183 name:
"InstancePermissionSetRights",
184 table:
"InstancePermissionSets",
187 oldClrType: typeof(decimal),
188 oldType:
"numeric(20,0)");
190 migrationBuilder.AlterColumn<decimal>(
191 name:
"DreamMakerRights",
192 table:
"InstancePermissionSets",
195 oldClrType: typeof(decimal),
196 oldType:
"numeric(20,0)");
198 migrationBuilder.AlterColumn<decimal>(
199 name:
"DreamDaemonRights",
200 table:
"InstancePermissionSets",
203 oldClrType: typeof(decimal),
204 oldType:
"numeric(20,0)");
206 migrationBuilder.AlterColumn<decimal>(
207 name:
"ConfigurationRights",
208 table:
"InstancePermissionSets",
211 oldClrType: typeof(decimal),
212 oldType:
"numeric(20,0)");
214 migrationBuilder.AlterColumn<decimal>(
215 name:
"ChatBotRights",
216 table:
"InstancePermissionSets",
219 oldClrType: typeof(decimal),
220 oldType:
"numeric(20,0)");
222 migrationBuilder.AlterColumn<decimal>(
224 table:
"InstancePermissionSets",
227 oldClrType: typeof(decimal),
228 oldType:
"numeric(20,0)");
230 migrationBuilder.AlterColumn<decimal>(
231 name:
"DiscordChannelId",
232 table:
"ChatChannels",
235 oldClrType: typeof(decimal),
236 oldType:
"numeric(20,0)",