1
0
mirror of synced 2024-11-24 06:20:12 +01:00
GC-local-server-rewrite/Infrastructure/Migrations/20230215165703_AddScoreRanks.cs

100 lines
5.0 KiB
C#
Raw Normal View History

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