using Microsoft.EntityFrameworkCore.Metadata; using Microsoft.EntityFrameworkCore.Migrations; namespace Kehyeedra3.Migrations { public partial class MiningUpdate : Migration { protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.AlterColumn( name: "CurrentBattlefish", table: "Users", type: "TINYINT", nullable: false, oldClrType: typeof(int), oldType: "int"); migrationBuilder.AlterColumn( name: "FishType", table: "Battlefish", type: "TINYINT", nullable: false, oldClrType: typeof(int), oldType: "int"); migrationBuilder.CreateTable( name: "Mining", columns: table => new { Id = table.Column(nullable: false) .Annotation("MySql:ValueGenerationStrategy", MySqlValueGenerationStrategy.IdentityColumn), Xp = table.Column(nullable: false), TXp = table.Column(nullable: false), Lvl = table.Column(nullable: false) }, constraints: table => { table.PrimaryKey("PK_Mining", x => x.Id); }); } protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.DropTable( name: "Mining"); migrationBuilder.AlterColumn( name: "CurrentBattlefish", table: "Users", type: "int", nullable: false, oldClrType: typeof(sbyte), oldType: "TINYINT"); migrationBuilder.AlterColumn( name: "FishType", table: "Battlefish", type: "int", nullable: false, oldClrType: typeof(sbyte), oldType: "TINYINT"); } } }