tgstation-server 6.12.0
The /tg/station 13 server suite
Loading...
Searching...
No Matches
20200807213742_MYAddDeploymentColumns.cs
Go to the documentation of this file.
1using System;
2
3using Microsoft.EntityFrameworkCore.Migrations;
4
6{
10 public partial class MYAddDeploymentColumns : Migration
11 {
13 protected override void Up(MigrationBuilder migrationBuilder)
14 {
15 ArgumentNullException.ThrowIfNull(migrationBuilder);
16
17 migrationBuilder.AddColumn<bool>(
18 name: "CreateGitHubDeployments",
19 table: "RepositorySettings",
20 nullable: false,
21 defaultValue: false);
22
23 migrationBuilder.AddColumn<int>(
24 name: "GitHubDeploymentId",
25 table: "CompileJobs",
26 nullable: true);
27
28 migrationBuilder.AddColumn<long>(
29 name: "GitHubRepoId",
30 table: "CompileJobs",
31 nullable: true);
32 }
33
35 protected override void Down(MigrationBuilder migrationBuilder)
36 {
37 ArgumentNullException.ThrowIfNull(migrationBuilder);
38
39 migrationBuilder.DropColumn(
40 name: "CreateGitHubDeployments",
41 table: "RepositorySettings");
42
43 migrationBuilder.DropColumn(
44 name: "GitHubDeploymentId",
45 table: "CompileJobs");
46
47 migrationBuilder.DropColumn(
48 name: "GitHubRepoId",
49 table: "CompileJobs");
50 }
51 }
52}