33 lines
1.1 KiB
C#
33 lines
1.1 KiB
C#
using Microsoft.EntityFrameworkCore.Migrations;
|
|
|
|
#nullable disable
|
|
|
|
namespace MareSynchronosServer.Migrations
|
|
{
|
|
public partial class RemoveCharacterData : Migration
|
|
{
|
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.DropTable(
|
|
name: "CharacterData");
|
|
}
|
|
|
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.CreateTable(
|
|
name: "CharacterData",
|
|
columns: table => new
|
|
{
|
|
UserId = table.Column<string>(type: "nvarchar(450)", nullable: false),
|
|
JobId = table.Column<int>(type: "int", nullable: false),
|
|
CharacterCache = table.Column<string>(type: "nvarchar(max)", nullable: true),
|
|
Hash = table.Column<string>(type: "nvarchar(max)", nullable: true)
|
|
},
|
|
constraints: table =>
|
|
{
|
|
table.PrimaryKey("PK_CharacterData", x => new { x.UserId, x.JobId });
|
|
});
|
|
}
|
|
}
|
|
}
|