tgstation-server 6.12.0
The /tg/station 13 server suite
Loading...
Searching...
No Matches
20230520203305_MYAddSystemChannels.cs
Go to the documentation of this file.
1using System;
2
3using Microsoft.EntityFrameworkCore.Migrations;
4
6{
10 public partial class MYAddSystemChannels : Migration
11 {
13 protected override void Up(MigrationBuilder migrationBuilder)
14 {
15 ArgumentNullException.ThrowIfNull(migrationBuilder);
16
17 migrationBuilder.AddColumn<bool>(
18 name: "IsSystemChannel",
19 table: "ChatChannels",
20 type: "tinyint(1)",
21 nullable: false,
22 defaultValue: true);
23 }
24
26 protected override void Down(MigrationBuilder migrationBuilder)
27 {
28 ArgumentNullException.ThrowIfNull(migrationBuilder);
29
30 migrationBuilder.DropColumn(
31 name: "IsSystemChannel",
32 table: "ChatChannels");
33 }
34 }
35}