Update release notes and deploy workspace
CI - Build & Verify / Build, Typecheck & Hygiene (push) Successful in 59s
CI - Build & Verify / Deploy to award.noveria.net (push) Failing after 53s

This commit is contained in:
AzuTear
2026-06-29 17:49:54 +02:00
parent c466348d18
commit 441ef2b850
196 changed files with 9279 additions and 39292 deletions
@@ -1,54 +0,0 @@
using Backend.Data;
using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace Backend.Migrations
{
/// <inheritdoc />
[DbContext(typeof(AwardsDbContext))]
[Migration("20260625110000_AddFooterPageContent")]
public partial class AddFooterPageContent : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
var imprintContent = SeedCatalog.DefaultImprintContent.Replace("'", "''");
var contactContent = SeedCatalog.DefaultContactContent.Replace("'", "''");
var sponsorsContent = SeedCatalog.DefaultSponsorsContent.Replace("'", "''");
migrationBuilder.Sql(
$"""
ALTER TABLE IF EXISTS "SiteSettings"
ADD COLUMN IF NOT EXISTS "ImprintContent" text NOT NULL DEFAULT '',
ADD COLUMN IF NOT EXISTS "ContactContent" text NOT NULL DEFAULT '',
ADD COLUMN IF NOT EXISTS "SponsorsContent" text NOT NULL DEFAULT '';
UPDATE "SiteSettings"
SET "ImprintContent" = '{imprintContent}'
WHERE "ImprintContent" IS NULL OR btrim("ImprintContent") = '';
UPDATE "SiteSettings"
SET "ContactContent" = '{contactContent}'
WHERE "ContactContent" IS NULL OR btrim("ContactContent") = '';
UPDATE "SiteSettings"
SET "SponsorsContent" = '{sponsorsContent}'
WHERE "SponsorsContent" IS NULL OR btrim("SponsorsContent") = '';
""");
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.Sql(
"""
ALTER TABLE IF EXISTS "SiteSettings"
DROP COLUMN IF EXISTS "ImprintContent",
DROP COLUMN IF EXISTS "ContactContent",
DROP COLUMN IF EXISTS "SponsorsContent";
""");
}
}
}