b53c7fb736
Features: - Category viewer ranges + subcategory templates (admin group modal, tree workspace) - Nomination enrichment via TwitchTracker API (NominationEnrichmentService, TwitchTrackerViewerStatsProvider) with admin tracking rules editor - Nomination group tracker: CategoryGroupName as primary identifier, CategoryId stays as nullable legacy field; StreamerIdentity table - Dynamic showact application form builder (AdminShowactFormBuilder, ShowactApplicationSchedule) - Session idle timeout setting (AdminSessionTimeoutCard) - Share URLs for X and Discord (SiteSettings, public extras) - Workflow rules now stored per season (falls back to global SiteSettings) - New admin routes: settings/access, settings/workflows, tracking-rules - New admin review workspace with subcategory tabs - AdminCategoriesView rebuilt with group/subcategory modals Migrations (all additive): - AddShareUrls, AddShowactDynamicForm, AddCategoryViewerRanges, AddSessionIdleTimeoutSettings, AddSeasonSubcategoryTemplates, AddNominationGroupTrackerIdentity, AddShowactApplicationSchedule, AddSeasonWorkflowRulesJson Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
58 lines
1.6 KiB
C#
58 lines
1.6 KiB
C#
using Microsoft.EntityFrameworkCore.Migrations;
|
|
|
|
#nullable disable
|
|
|
|
namespace Backend.Migrations
|
|
{
|
|
/// <inheritdoc />
|
|
public partial class AddSeasonSubcategoryTemplates : Migration
|
|
{
|
|
/// <inheritdoc />
|
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "SubcategoryTemplatesJson",
|
|
table: "Seasons",
|
|
type: "text",
|
|
nullable: false,
|
|
defaultValue: "[]");
|
|
|
|
migrationBuilder.UpdateData(
|
|
table: "Seasons",
|
|
keyColumn: "Id",
|
|
keyValue: 1,
|
|
column: "SubcategoryTemplatesJson",
|
|
value: "[]");
|
|
|
|
migrationBuilder.UpdateData(
|
|
table: "Seasons",
|
|
keyColumn: "Id",
|
|
keyValue: 2,
|
|
column: "SubcategoryTemplatesJson",
|
|
value: "[]");
|
|
|
|
migrationBuilder.UpdateData(
|
|
table: "Seasons",
|
|
keyColumn: "Id",
|
|
keyValue: 3,
|
|
column: "SubcategoryTemplatesJson",
|
|
value: "[]");
|
|
|
|
migrationBuilder.UpdateData(
|
|
table: "Seasons",
|
|
keyColumn: "Id",
|
|
keyValue: 4,
|
|
column: "SubcategoryTemplatesJson",
|
|
value: "[]");
|
|
}
|
|
|
|
/// <inheritdoc />
|
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.DropColumn(
|
|
name: "SubcategoryTemplatesJson",
|
|
table: "Seasons");
|
|
}
|
|
}
|
|
}
|