mirror of https://github.com/ErsatzTV/ErsatzTV.git
15 changed files with 11851 additions and 38 deletions
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,66 @@
@@ -0,0 +1,66 @@
|
||||
using Microsoft.EntityFrameworkCore.Migrations; |
||||
|
||||
#nullable disable |
||||
|
||||
namespace ErsatzTV.Infrastructure.MySql.Migrations |
||||
{ |
||||
/// <inheritdoc />
|
||||
public partial class Modify_WatermarkMarginsAndWidth : Migration |
||||
{ |
||||
/// <inheritdoc />
|
||||
protected override void Up(MigrationBuilder migrationBuilder) |
||||
{ |
||||
migrationBuilder.AlterColumn<double>( |
||||
name: "WidthPercent", |
||||
table: "ChannelWatermark", |
||||
type: "double", |
||||
nullable: false, |
||||
oldClrType: typeof(int), |
||||
oldType: "int"); |
||||
|
||||
migrationBuilder.AlterColumn<double>( |
||||
name: "VerticalMarginPercent", |
||||
table: "ChannelWatermark", |
||||
type: "double", |
||||
nullable: false, |
||||
oldClrType: typeof(int), |
||||
oldType: "int"); |
||||
|
||||
migrationBuilder.AlterColumn<double>( |
||||
name: "HorizontalMarginPercent", |
||||
table: "ChannelWatermark", |
||||
type: "double", |
||||
nullable: false, |
||||
oldClrType: typeof(int), |
||||
oldType: "int"); |
||||
} |
||||
|
||||
/// <inheritdoc />
|
||||
protected override void Down(MigrationBuilder migrationBuilder) |
||||
{ |
||||
migrationBuilder.AlterColumn<int>( |
||||
name: "WidthPercent", |
||||
table: "ChannelWatermark", |
||||
type: "int", |
||||
nullable: false, |
||||
oldClrType: typeof(double), |
||||
oldType: "double"); |
||||
|
||||
migrationBuilder.AlterColumn<int>( |
||||
name: "VerticalMarginPercent", |
||||
table: "ChannelWatermark", |
||||
type: "int", |
||||
nullable: false, |
||||
oldClrType: typeof(double), |
||||
oldType: "double"); |
||||
|
||||
migrationBuilder.AlterColumn<int>( |
||||
name: "HorizontalMarginPercent", |
||||
table: "ChannelWatermark", |
||||
type: "int", |
||||
nullable: false, |
||||
oldClrType: typeof(double), |
||||
oldType: "double"); |
||||
} |
||||
} |
||||
} |
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,66 @@
@@ -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"); |
||||
} |
||||
} |
||||
} |
Loading…
Reference in new issue