oh yeah woo yeah
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Kehyeedra/Kehyeedra3/Migrations/20210410172129_MiningUpdate.cs

65 lines
2.1 KiB

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");
}
}
}