tgstation-server 6.12.0
The /tg/station 13 server suite
Loading...
Searching...
No Matches
20231108004409_SLRenameByondColumnsToEngine.cs
Go to the documentation of this file.
1using System;
2
3using Microsoft.EntityFrameworkCore.Migrations;
4
6{
9 {
11 protected override void Up(MigrationBuilder migrationBuilder)
12 {
13 ArgumentNullException.ThrowIfNull(migrationBuilder);
14
15 migrationBuilder.RenameColumn(
16 name: "ByondRights",
17 table: "InstancePermissionSets",
18 newName: "EngineRights");
19
20 migrationBuilder.RenameColumn(
21 name: "ByondVersion",
22 table: "CompileJobs",
23 newName: "EngineVersion");
24 }
25
27 protected override void Down(MigrationBuilder migrationBuilder)
28 {
29 ArgumentNullException.ThrowIfNull(migrationBuilder);
30
31 migrationBuilder.RenameColumn(
32 name: "EngineRights",
33 table: "InstancePermissionSets",
34 newName: "ByondRights");
35
36 migrationBuilder.RenameColumn(
37 name: "EngineVersion",
38 table: "CompileJobs",
39 newName: "ByondVersion");
40 }
41 }
42}