mirror of
https://github.com/TbT480jcspy/Iris-Rec-2023-Server-Code.git
synced 2026-09-08 06:31:23 -07:00
68 lines
3.0 KiB
C#
68 lines
3.0 KiB
C#
using Microsoft.EntityFrameworkCore.Metadata;
|
|
using Microsoft.EntityFrameworkCore.Migrations;
|
|
|
|
#nullable disable
|
|
|
|
namespace ir23.Migrations
|
|
{
|
|
/// <inheritdoc />
|
|
public partial class ReputationAddition : Migration
|
|
{
|
|
/// <inheritdoc />
|
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.CreateTable(
|
|
name: "PlayerSettings",
|
|
columns: table => new
|
|
{
|
|
Id = table.Column<long>(type: "bigint", nullable: false)
|
|
.Annotation("MySql:ValueGenerationStrategy", MySqlValueGenerationStrategy.IdentityColumn),
|
|
accountId = table.Column<long>(type: "bigint", nullable: false),
|
|
Key = table.Column<string>(type: "longtext", nullable: false)
|
|
.Annotation("MySql:CharSet", "utf8mb4"),
|
|
Value = table.Column<string>(type: "longtext", nullable: false)
|
|
.Annotation("MySql:CharSet", "utf8mb4")
|
|
},
|
|
constraints: table =>
|
|
{
|
|
table.PrimaryKey("PK_PlayerSettings", x => x.Id);
|
|
})
|
|
.Annotation("MySql:CharSet", "utf8mb4");
|
|
|
|
migrationBuilder.CreateTable(
|
|
name: "Reputations",
|
|
columns: table => new
|
|
{
|
|
Id = table.Column<long>(type: "bigint", nullable: false)
|
|
.Annotation("MySql:ValueGenerationStrategy", MySqlValueGenerationStrategy.IdentityColumn),
|
|
accountId = table.Column<long>(type: "bigint", nullable: false),
|
|
Noteriety = table.Column<int>(type: "int", nullable: false),
|
|
CheerGeneral = table.Column<int>(type: "int", nullable: false),
|
|
CheerHelpful = table.Column<int>(type: "int", nullable: false),
|
|
CheerGreatHost = table.Column<int>(type: "int", nullable: false),
|
|
CheerSportsman = table.Column<int>(type: "int", nullable: false),
|
|
CheerCreative = table.Column<int>(type: "int", nullable: false),
|
|
CheerCredit = table.Column<int>(type: "int", nullable: false),
|
|
SubscriberCount = table.Column<int>(type: "int", nullable: false),
|
|
SubscribedCount = table.Column<int>(type: "int", nullable: false),
|
|
SelectedCheer = table.Column<int>(type: "int", nullable: false)
|
|
},
|
|
constraints: table =>
|
|
{
|
|
table.PrimaryKey("PK_Reputations", x => x.Id);
|
|
})
|
|
.Annotation("MySql:CharSet", "utf8mb4");
|
|
}
|
|
|
|
/// <inheritdoc />
|
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.DropTable(
|
|
name: "PlayerSettings");
|
|
|
|
migrationBuilder.DropTable(
|
|
name: "Reputations");
|
|
}
|
|
}
|
|
}
|