mirror of
https://github.com/JogmansonReal/Radicade.git
synced 2026-10-26 15:39:01 -07:00
40 lines
1020 B
C#
40 lines
1020 B
C#
using Microsoft.EntityFrameworkCore.Migrations;
|
|
|
|
#nullable disable
|
|
|
|
namespace RadicadeServer.Migrations
|
|
{
|
|
|
|
public partial class AddPlayerEventModerationFields : Migration
|
|
{
|
|
|
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.AddColumn<int>(
|
|
name: "ModerationState",
|
|
table: "PlayerEvents",
|
|
type: "int",
|
|
nullable: false,
|
|
defaultValue: 0);
|
|
|
|
migrationBuilder.AddColumn<long>(
|
|
name: "SubRoomId",
|
|
table: "PlayerEvents",
|
|
type: "bigint",
|
|
nullable: true);
|
|
}
|
|
|
|
|
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.DropColumn(
|
|
name: "SubRoomId",
|
|
table: "PlayerEvents");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "ModerationState",
|
|
table: "PlayerEvents");
|
|
}
|
|
}
|
|
}
|