using System;
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace SVSim.Database.Migrations
{
///
public partial class DropColosseumsTable : Migration
{
///
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropTable(
name: "Colosseums");
}
///
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.CreateTable(
name: "Colosseums",
columns: table => new
{
Id = table.Column(type: "integer", nullable: false),
CardPoolName = table.Column(type: "text", nullable: false),
ColosseumId = table.Column(type: "text", nullable: false),
ColosseumName = table.Column(type: "text", nullable: false),
DateCreated = table.Column(type: "timestamp with time zone", nullable: false),
DateUpdated = table.Column(type: "timestamp with time zone", nullable: true),
DeckFormat = table.Column(type: "text", nullable: false),
EndTime = table.Column(type: "timestamp with time zone", nullable: false),
IsAllCardEnabled = table.Column(type: "integer", nullable: false),
IsColosseumPeriod = table.Column(type: "boolean", nullable: false),
IsDisplayTips = table.Column(type: "text", nullable: false),
IsNormalTwoPick = table.Column(type: "text", nullable: false),
IsRoundPeriod = table.Column(type: "boolean", nullable: false),
IsSpecialMode = table.Column(type: "text", nullable: false),
NowRound = table.Column(type: "text", nullable: false),
SalesPeriodInfo = table.Column(type: "jsonb", nullable: false),
StartTime = table.Column(type: "timestamp with time zone", nullable: false),
TipsId = table.Column(type: "text", nullable: false)
},
constraints: table =>
{
table.PrimaryKey("PK_Colosseums", x => x.Id);
});
}
}
}