Add per-user phase navigation with results toggle

This commit is contained in:
2026-02-04 21:43:12 +01:00
parent b64a33d833
commit e5e27af0af
24 changed files with 507 additions and 88 deletions

View File

@@ -0,0 +1,51 @@
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace GameList.Data.Migrations
{
/// <inheritdoc />
public partial class PerUserPhases : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "CurrentPhase",
table: "AppState");
migrationBuilder.AddColumn<int>(
name: "CurrentPhase",
table: "Players",
type: "INTEGER",
nullable: false,
defaultValue: 0);
migrationBuilder.AddColumn<bool>(
name: "ResultsOpen",
table: "AppState",
type: "INTEGER",
nullable: false,
defaultValue: false);
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "ResultsOpen",
table: "AppState");
migrationBuilder.DropColumn(
name: "CurrentPhase",
table: "Players");
migrationBuilder.AddColumn<int>(
name: "CurrentPhase",
table: "AppState",
type: "INTEGER",
nullable: false,
defaultValue: 0);
}
}
}