tgstation-server 6.12.0
The /tg/station 13 server suite
Loading...
Searching...
No Matches
20201209194250_MSGenericTestMergingUpdate.cs
Go to the documentation of this file.
1using System;
2
3using Microsoft.EntityFrameworkCore.Migrations;
4
6{
11 {
13 protected override void Up(MigrationBuilder migrationBuilder)
14 {
15 ArgumentNullException.ThrowIfNull(migrationBuilder);
16
17 migrationBuilder.RenameColumn(
18 name: "PullRequestRevision",
19 table: "TestMerges",
20 newName: "TargetCommitSha");
21
22 migrationBuilder.AddColumn<string>(
23 name: "RepositoryOrigin",
24 table: "CompileJobs",
25 nullable: true);
26 }
27
29 protected override void Down(MigrationBuilder migrationBuilder)
30 {
31 ArgumentNullException.ThrowIfNull(migrationBuilder);
32
33 migrationBuilder.RenameColumn(
34 name: "TargetCommitSha",
35 table: "TestMerges",
36 newName: "PullRequestRevision");
37
38 migrationBuilder.DropColumn(
39 name: "RepositoryOrigin",
40 table: "CompileJobs");
41 }
42 }
43}
Renames the PullRequestRevision and adds the RepositoryOrigin columns for MSSQL.