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.
45 lines
1.3 KiB
45 lines
1.3 KiB
using Microsoft.EntityFrameworkCore.Migrations; |
|
|
|
namespace ErsatzTV.Infrastructure.Migrations |
|
{ |
|
public partial class Add_FFmpegProfile_FrameRate : Migration |
|
{ |
|
protected override void Up(MigrationBuilder migrationBuilder) |
|
{ |
|
migrationBuilder.DropColumn( |
|
"NormalizeResolution", |
|
"FFmpegProfile"); |
|
|
|
migrationBuilder.RenameColumn( |
|
"NormalizeVideoCodec", |
|
"FFmpegProfile", |
|
"NormalizeVideo"); |
|
|
|
migrationBuilder.AddColumn<string>( |
|
"FrameRate", |
|
"FFmpegProfile", |
|
"TEXT", |
|
nullable: true, |
|
defaultValue: "24"); |
|
} |
|
|
|
protected override void Down(MigrationBuilder migrationBuilder) |
|
{ |
|
migrationBuilder.DropColumn( |
|
"FrameRate", |
|
"FFmpegProfile"); |
|
|
|
migrationBuilder.RenameColumn( |
|
"NormalizeVideo", |
|
"FFmpegProfile", |
|
"NormalizeVideoCodec"); |
|
|
|
migrationBuilder.AddColumn<bool>( |
|
"NormalizeResolution", |
|
"FFmpegProfile", |
|
"INTEGER", |
|
nullable: false, |
|
defaultValue: false); |
|
} |
|
} |
|
}
|
|
|