feat(config): persist is_foil_preferred + is_prize_preferred (stubs → real)
This commit is contained in:
4647
SVSim.Database/Migrations/20260613134356_ConfigPreferenceFlags.Designer.cs
generated
Normal file
4647
SVSim.Database/Migrations/20260613134356_ConfigPreferenceFlags.Designer.cs
generated
Normal file
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,40 @@
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace SVSim.Database.Migrations
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public partial class ConfigPreferenceFlags : Migration
|
||||
{
|
||||
/// <inheritdoc />
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.AddColumn<bool>(
|
||||
name: "Info_IsFoilPreferred",
|
||||
table: "Viewers",
|
||||
type: "boolean",
|
||||
nullable: false,
|
||||
defaultValue: false);
|
||||
|
||||
migrationBuilder.AddColumn<bool>(
|
||||
name: "Info_IsPrizePreferred",
|
||||
table: "Viewers",
|
||||
type: "boolean",
|
||||
nullable: false,
|
||||
defaultValue: false);
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropColumn(
|
||||
name: "Info_IsFoilPreferred",
|
||||
table: "Viewers");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "Info_IsPrizePreferred",
|
||||
table: "Viewers");
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -4340,12 +4340,18 @@ namespace SVSim.Database.Migrations
|
||||
.IsRequired()
|
||||
.HasColumnType("text");
|
||||
|
||||
b1.Property<bool>("IsFoilPreferred")
|
||||
.HasColumnType("boolean");
|
||||
|
||||
b1.Property<bool>("IsOfficial")
|
||||
.HasColumnType("boolean");
|
||||
|
||||
b1.Property<bool>("IsOfficialMarkDisplayed")
|
||||
.HasColumnType("boolean");
|
||||
|
||||
b1.Property<bool>("IsPrizePreferred")
|
||||
.HasColumnType("boolean");
|
||||
|
||||
b1.Property<int>("MaxFriends")
|
||||
.HasColumnType("integer");
|
||||
|
||||
|
||||
@@ -10,6 +10,8 @@ public class ViewerInfo
|
||||
public int MaxFriends { get; set; }
|
||||
public bool IsOfficial { get; set; }
|
||||
public bool IsOfficialMarkDisplayed { get; set; }
|
||||
public bool IsFoilPreferred { get; set; }
|
||||
public bool IsPrizePreferred { get; set; }
|
||||
|
||||
#region Navigation Properties
|
||||
|
||||
|
||||
Reference in New Issue
Block a user