tgstation-server 6.12.0
The /tg/station 13 server suite
Loading...
Searching...
No Matches
20200425024433_MSAddJobErrorCodes.cs
Go to the documentation of this file.
1using System;
2
3using Microsoft.EntityFrameworkCore.Migrations;
4
6{
10 public partial class MSAddJobErrorCodes : Migration
11 {
13 protected override void Up(MigrationBuilder migrationBuilder)
14 {
15 ArgumentNullException.ThrowIfNull(migrationBuilder);
16
17 migrationBuilder.AddColumn<long>(
18 name: "ErrorCode",
19 table: "Jobs",
20 nullable: true);
21 }
22
24 protected override void Down(MigrationBuilder migrationBuilder)
25 {
26 ArgumentNullException.ThrowIfNull(migrationBuilder);
27
28 migrationBuilder.DropColumn(
29 name: "ErrorCode",
30 table: "Jobs");
31 }
32 }
33}
Adds the Api.Models.Internal.Job.ErrorCode column for MSSQL.