using Microsoft.EntityFrameworkCore.Metadata;
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace DeluxeNET.Migrations
{
///
public partial class progressionAdd : Migration
{
///
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AlterColumn(
name: "accountId",
table: "Avatars",
type: "bigint",
nullable: true,
oldClrType: typeof(long),
oldType: "bigint");
migrationBuilder.CreateTable(
name: "Progressions",
columns: table => new
{
Id = table.Column(type: "bigint", nullable: false)
.Annotation("MySql:ValueGenerationStrategy", MySqlValueGenerationStrategy.IdentityColumn),
PlayerId = table.Column(type: "bigint", nullable: false),
Level = table.Column(type: "int", nullable: false),
XP = table.Column(type: "int", nullable: false)
},
constraints: table =>
{
table.PrimaryKey("PK_Progressions", x => x.Id);
})
.Annotation("MySql:CharSet", "utf8mb4");
}
///
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropTable(
name: "Progressions");
migrationBuilder.AlterColumn(
name: "accountId",
table: "Avatars",
type: "bigint",
nullable: false,
defaultValue: 0L,
oldClrType: typeof(long),
oldType: "bigint",
oldNullable: true);
}
}
}