39 lines
1.3 KiB
C#
39 lines
1.3 KiB
C#
using Microsoft.EntityFrameworkCore.Migrations;
|
|
|
|
#nullable disable
|
|
|
|
namespace BHServer.Migrations
|
|
{
|
|
/// <inheritdoc />
|
|
public partial class AddProvincesToDb : Migration
|
|
{
|
|
/// <inheritdoc />
|
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.CreateTable(
|
|
name: "Provinces",
|
|
columns: table => new
|
|
{
|
|
Id = table.Column<int>(type: "int", nullable: false)
|
|
.Annotation("SqlServer:Identity", "1, 1"),
|
|
Name = table.Column<string>(type: "nvarchar(max)", nullable: false),
|
|
Faction = table.Column<int>(type: "int", nullable: false),
|
|
Multiplier = table.Column<int>(type: "int", nullable: false),
|
|
ATs = table.Column<string>(type: "nvarchar(max)", nullable: false),
|
|
State = table.Column<int>(type: "int", nullable: false)
|
|
},
|
|
constraints: table =>
|
|
{
|
|
table.PrimaryKey("PK_Provinces", x => x.Id);
|
|
});
|
|
}
|
|
|
|
/// <inheritdoc />
|
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.DropTable(
|
|
name: "Provinces");
|
|
}
|
|
}
|
|
}
|