Files
Iris-Rec-2023-Server-Code/Migrations/20260326234138_ReputationAddition.cs
T
Exception 46589f2ef3 MOVEMENT
2026-05-09 14:13:43 -04:00

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");
}
}
}