tgstation-server 6.12.0
The /tg/station 13 server suite
Loading...
Searching...
No Matches
20231105004808_MYAddJobCodes.cs
Go to the documentation of this file.
1using System;
2
3using Microsoft.EntityFrameworkCore.Migrations;
4
6{
8 public partial class MYAddJobCodes : Migration
9 {
11 protected override void Up(MigrationBuilder migrationBuilder)
12 {
13 ArgumentNullException.ThrowIfNull(migrationBuilder);
14 migrationBuilder.AddColumn<byte>(
15 name: "JobCode",
16 table: "Jobs",
17 type: "tinyint unsigned",
18 nullable: false,
19 defaultValue: (byte)0);
20 }
21
23 protected override void Down(MigrationBuilder migrationBuilder)
24 {
25 ArgumentNullException.ThrowIfNull(migrationBuilder);
26 migrationBuilder.DropColumn(
27 name: "JobCode",
28 table: "Jobs");
29 }
30 }
31}
override void Up(MigrationBuilder migrationBuilder)
override void Down(MigrationBuilder migrationBuilder)