2016-12-17 00:16:14 +00:00
|
|
|
|
using Microsoft.EntityFrameworkCore.Migrations;
|
2016-11-28 01:14:29 +00:00
|
|
|
|
|
|
|
|
|
namespace NadekoBot.Migrations
|
|
|
|
|
{
|
|
|
|
|
public partial class PokeGame : Migration
|
|
|
|
|
{
|
|
|
|
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|
|
|
|
{
|
|
|
|
|
migrationBuilder.CreateTable(
|
|
|
|
|
name: "PokeGame",
|
|
|
|
|
columns: table => new
|
|
|
|
|
{
|
|
|
|
|
Id = table.Column<int>(nullable: false)
|
|
|
|
|
.Annotation("Sqlite:Autoincrement", true),
|
2016-12-04 20:28:49 +00:00
|
|
|
|
UserId = table.Column<ulong>(nullable: false),
|
2016-11-28 01:14:29 +00:00
|
|
|
|
type = table.Column<string>(nullable: true)
|
|
|
|
|
},
|
|
|
|
|
constraints: table =>
|
|
|
|
|
{
|
|
|
|
|
table.PrimaryKey("PK_PokeGame", x => x.Id);
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
migrationBuilder.CreateIndex(
|
|
|
|
|
name: "IX_PokeGame_UserId",
|
|
|
|
|
table: "PokeGame",
|
|
|
|
|
column: "UserId",
|
|
|
|
|
unique: true);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|
|
|
|
{
|
|
|
|
|
migrationBuilder.DropTable(
|
|
|
|
|
name: "PokeGame");
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|