feat(viewer): migration for ViewerClassData.IsRandomLeaderSkin

Adds AddViewerClassDataIsRandomLeaderSkin migration: boolean column on
the ViewerClassData shadow table, nullable: false, defaultValue: false.
Also updates the model snapshot to reflect the new bool property.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
gamer147
2026-06-09 17:27:16 -04:00
parent 2f4420bf15
commit da6b448598
3 changed files with 4353 additions and 0 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,29 @@
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace SVSim.Database.Migrations
{
/// <inheritdoc />
public partial class AddViewerClassDataIsRandomLeaderSkin : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn<bool>(
name: "IsRandomLeaderSkin",
table: "ViewerClassData",
type: "boolean",
nullable: false,
defaultValue: false);
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "IsRandomLeaderSkin",
table: "ViewerClassData");
}
}
}

View File

@@ -3904,6 +3904,9 @@ namespace SVSim.Database.Migrations
b1.Property<int>("Exp") b1.Property<int>("Exp")
.HasColumnType("integer"); .HasColumnType("integer");
b1.Property<bool>("IsRandomLeaderSkin")
.HasColumnType("boolean");
b1.Property<int>("LeaderSkinId") b1.Property<int>("LeaderSkinId")
.HasColumnType("integer"); .HasColumnType("integer");