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