using Microsoft.EntityFrameworkCore.Migrations; #nullable disable namespace Infrastructure.Migrations { /// public partial class AddScoreRanks : Migration { /// protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.CreateTable( name: "GlobalScoreRank", columns: table => new { CardId = table.Column(type: "INTEGER", nullable: false), PlayerName = table.Column(type: "TEXT", nullable: false), Rank = table.Column(type: "INTEGER", nullable: false), TotalScore = table.Column(type: "INTEGER", nullable: false), AvatarId = table.Column(type: "INTEGER", nullable: false), TitleId = table.Column(type: "INTEGER", nullable: false), Fcol1 = table.Column(type: "INTEGER", nullable: false), PrefId = table.Column(type: "INTEGER", nullable: false), Pref = table.Column(type: "TEXT", nullable: false), AreaId = table.Column(type: "INTEGER", nullable: false), Area = table.Column(type: "TEXT", nullable: false), LastPlayTenpoId = table.Column(type: "INTEGER", nullable: false), TenpoName = table.Column(type: "TEXT", nullable: false), Title = table.Column(type: "TEXT", nullable: false) }, constraints: table => { table.PrimaryKey("PK_GlobalScoreRank", x => x.CardId); }); migrationBuilder.CreateTable( name: "MonthlyScoreRank", columns: table => new { CardId = table.Column(type: "INTEGER", nullable: false), PlayerName = table.Column(type: "TEXT", nullable: false), Rank = table.Column(type: "INTEGER", nullable: false), TotalScore = table.Column(type: "INTEGER", nullable: false), AvatarId = table.Column(type: "INTEGER", nullable: false), TitleId = table.Column(type: "INTEGER", nullable: false), Fcol1 = table.Column(type: "INTEGER", nullable: false), PrefId = table.Column(type: "INTEGER", nullable: false), Pref = table.Column(type: "TEXT", nullable: false), AreaId = table.Column(type: "INTEGER", nullable: false), Area = table.Column(type: "TEXT", nullable: false), LastPlayTenpoId = table.Column(type: "INTEGER", nullable: false), TenpoName = table.Column(type: "TEXT", nullable: false), Title = table.Column(type: "TEXT", nullable: false) }, constraints: table => { table.PrimaryKey("PK_MonthlyScoreRank", x => x.CardId); }); migrationBuilder.CreateTable( name: "ShopScoreRank", columns: table => new { CardId = table.Column(type: "INTEGER", nullable: false), PlayerName = table.Column(type: "TEXT", nullable: false), Rank = table.Column(type: "INTEGER", nullable: false), TotalScore = table.Column(type: "INTEGER", nullable: false), AvatarId = table.Column(type: "INTEGER", nullable: false), TitleId = table.Column(type: "INTEGER", nullable: false), Fcol1 = table.Column(type: "INTEGER", nullable: false), PrefId = table.Column(type: "INTEGER", nullable: false), Pref = table.Column(type: "TEXT", nullable: false), AreaId = table.Column(type: "INTEGER", nullable: false), Area = table.Column(type: "TEXT", nullable: false), LastPlayTenpoId = table.Column(type: "INTEGER", nullable: false), TenpoName = table.Column(type: "TEXT", nullable: false), Title = table.Column(type: "TEXT", nullable: false) }, constraints: table => { table.PrimaryKey("PK_ShopScoreRank", x => x.CardId); }); } /// protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.DropTable( name: "GlobalScoreRank"); migrationBuilder.DropTable( name: "MonthlyScoreRank"); migrationBuilder.DropTable( name: "ShopScoreRank"); } } }