using Microsoft.EntityFrameworkCore.Migrations; namespace NadekoBot.Migrations { public partial class PokeGame : Migration { protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.CreateTable( name: "PokeGame", columns: table => new { Id = table.Column(nullable: false) .Annotation("Sqlite:Autoincrement", true), UserId = table.Column(nullable: false), type = table.Column(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"); } } }