Fase 3a: bibliotheektabellen krijgen set, varianten en uitsnede-overrides (additief), kopie, schrijf-door en controle vullen en vergelijken ze

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-18 00:00:59 +01:00
co-authored by Claude Sonnet 5.5
parent e1f2abf004
commit 53e1e3c8a6
14 changed files with 429 additions and 9 deletions
@@ -0,0 +1,109 @@
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace SlpModularCms.Modules.Media.Migrations
{
/// <inheritdoc />
public partial class AddHeroPhotoColumns : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn<string>(
name: "Variants",
table: "MediaUses",
type: "longtext",
nullable: true);
migrationBuilder.AddColumn<string>(
name: "SetHash",
table: "MediaAssets",
type: "varchar(16)",
maxLength: 16,
nullable: true);
migrationBuilder.AddColumn<double>(
name: "TallFocusX",
table: "MediaAssets",
type: "double",
nullable: true);
migrationBuilder.AddColumn<double>(
name: "TallFocusY",
table: "MediaAssets",
type: "double",
nullable: true);
migrationBuilder.AddColumn<double>(
name: "TallZoom",
table: "MediaAssets",
type: "double",
nullable: true);
migrationBuilder.AddColumn<string>(
name: "Variants",
table: "MediaAssets",
type: "longtext",
nullable: true);
migrationBuilder.AddColumn<double>(
name: "WideFocusX",
table: "MediaAssets",
type: "double",
nullable: true);
migrationBuilder.AddColumn<double>(
name: "WideFocusY",
table: "MediaAssets",
type: "double",
nullable: true);
migrationBuilder.AddColumn<double>(
name: "WideZoom",
table: "MediaAssets",
type: "double",
nullable: true);
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "Variants",
table: "MediaUses");
migrationBuilder.DropColumn(
name: "SetHash",
table: "MediaAssets");
migrationBuilder.DropColumn(
name: "TallFocusX",
table: "MediaAssets");
migrationBuilder.DropColumn(
name: "TallFocusY",
table: "MediaAssets");
migrationBuilder.DropColumn(
name: "TallZoom",
table: "MediaAssets");
migrationBuilder.DropColumn(
name: "Variants",
table: "MediaAssets");
migrationBuilder.DropColumn(
name: "WideFocusX",
table: "MediaAssets");
migrationBuilder.DropColumn(
name: "WideFocusY",
table: "MediaAssets");
migrationBuilder.DropColumn(
name: "WideZoom",
table: "MediaAssets");
}
}
}