using Microsoft.EntityFrameworkCore.Metadata; using Microsoft.EntityFrameworkCore.Migrations; #nullable disable namespace ir23.Migrations { /// public partial class ProgressionTable : Migration { /// protected override void Up(MigrationBuilder migrationBuilder) { 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"); } } }