using Microsoft.EntityFrameworkCore.Migrations; #nullable disable namespace NadekoBot.Migrations { /// public partial class fishes : Migration { /// protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.CreateTable( name: "FishCatch", columns: table => new { Id = table.Column(type: "INTEGER", nullable: false) .Annotation("Sqlite:Autoincrement", true), UserId = table.Column(type: "INTEGER", nullable: false), FishId = table.Column(type: "INTEGER", nullable: false), Count = table.Column(type: "INTEGER", nullable: false), MaxStars = table.Column(type: "INTEGER", nullable: false) }, constraints: table => { table.PrimaryKey("PK_FishCatch", x => x.Id); table.UniqueConstraint("AK_FishCatch_UserId_FishId", x => new { x.UserId, x.FishId }); }); } /// protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.DropTable( name: "FishCatch"); } } }