1
0
mirror of synced 2024-12-18 09:15:54 +01:00
GC-local-server-rewrite/Infrastructure/Migrations/20230214162154_AddPlayNumRank.cs

40 lines
1.4 KiB
C#

using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace Infrastructure.Migrations
{
/// <inheritdoc />
public partial class AddPlayNumRank : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.CreateTable(
name: "PlayNumRank",
columns: table => new
{
MusicId = table.Column<int>(type: "INTEGER", nullable: false),
PlayCount = table.Column<int>(type: "INTEGER", nullable: false),
Rank = table.Column<int>(type: "INTEGER", nullable: false),
Rank2 = table.Column<int>(type: "INTEGER", nullable: false),
PrevRank = table.Column<int>(type: "INTEGER", nullable: false),
PrevRank2 = table.Column<int>(type: "INTEGER", nullable: false),
Title = table.Column<string>(type: "TEXT", nullable: false),
Artist = table.Column<string>(type: "TEXT", nullable: false)
},
constraints: table =>
{
table.PrimaryKey("PK_PlayNumRank", x => x.MusicId);
});
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropTable(
name: "PlayNumRank");
}
}
}