mirror of https://github.com/ErsatzTV/ErsatzTV.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
66 lines
2.1 KiB
66 lines
2.1 KiB
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"); |
|
} |
|
} |
|
}
|
|
|