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:
4321
SVSim.Database/Migrations/20260609212630_AddViewerClassDataIsRandomLeaderSkin.Designer.cs
generated
Normal file
4321
SVSim.Database/Migrations/20260609212630_AddViewerClassDataIsRandomLeaderSkin.Designer.cs
generated
Normal file
File diff suppressed because it is too large
Load Diff
@@ -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");
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -3904,6 +3904,9 @@ namespace SVSim.Database.Migrations
|
||||
b1.Property<int>("Exp")
|
||||
.HasColumnType("integer");
|
||||
|
||||
b1.Property<bool>("IsRandomLeaderSkin")
|
||||
.HasColumnType("boolean");
|
||||
|
||||
b1.Property<int>("LeaderSkinId")
|
||||
.HasColumnType("integer");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user