41 lines
1.1 KiB
C#
41 lines
1.1 KiB
C#
using Microsoft.EntityFrameworkCore.Migrations;
|
|
|
|
#nullable disable
|
|
|
|
namespace TaikoLocalServer.Migrations
|
|
{
|
|
/// <inheritdoc />
|
|
public partial class AddTokenCountDictAndUnlockedSongIdListToUserdata : Migration
|
|
{
|
|
/// <inheritdoc />
|
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "TokenCountDict",
|
|
table: "UserData",
|
|
type: "TEXT",
|
|
nullable: false,
|
|
defaultValue: "");
|
|
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "UnlockedSongIdList",
|
|
table: "UserData",
|
|
type: "TEXT",
|
|
nullable: false,
|
|
defaultValue: "");
|
|
}
|
|
|
|
/// <inheritdoc />
|
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.DropColumn(
|
|
name: "TokenCountDict",
|
|
table: "UserData");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "UnlockedSongIdList",
|
|
table: "UserData");
|
|
}
|
|
}
|
|
}
|