change watermark width and margins to allow decimals (#2167)

This commit is contained in:
Jason Dove
2025-07-18 21:28:32 +00:00
committed by GitHub
parent e0cef62969
commit c953176cee
15 changed files with 11851 additions and 38 deletions
@@ -0,0 +1,66 @@
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace ErsatzTV.Infrastructure.Sqlite.Migrations
{
/// <inheritdoc />
public partial class Modify_WatermarkMarginsAndWidth : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AlterColumn<double>(
name: "WidthPercent",
table: "ChannelWatermark",
type: "REAL",
nullable: false,
oldClrType: typeof(int),
oldType: "INTEGER");
migrationBuilder.AlterColumn<double>(
name: "VerticalMarginPercent",
table: "ChannelWatermark",
type: "REAL",
nullable: false,
oldClrType: typeof(int),
oldType: "INTEGER");
migrationBuilder.AlterColumn<double>(
name: "HorizontalMarginPercent",
table: "ChannelWatermark",
type: "REAL",
nullable: false,
oldClrType: typeof(int),
oldType: "INTEGER");
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.AlterColumn<int>(
name: "WidthPercent",
table: "ChannelWatermark",
type: "INTEGER",
nullable: false,
oldClrType: typeof(double),
oldType: "REAL");
migrationBuilder.AlterColumn<int>(
name: "VerticalMarginPercent",
table: "ChannelWatermark",
type: "INTEGER",
nullable: false,
oldClrType: typeof(double),
oldType: "REAL");
migrationBuilder.AlterColumn<int>(
name: "HorizontalMarginPercent",
table: "ChannelWatermark",
type: "INTEGER",
nullable: false,
oldClrType: typeof(double),
oldType: "REAL");
}
}
}