* add video profile for nvenc/software h264 encoders * add h264 profile for all other encoders * update changelog
31 lines
861 B
C#
31 lines
861 B
C#
using Microsoft.EntityFrameworkCore.Migrations;
|
|
|
|
#nullable disable
|
|
|
|
namespace ErsatzTV.Infrastructure.Sqlite.Migrations
|
|
{
|
|
/// <inheritdoc />
|
|
public partial class Add_FFmpegProfile_VideoProfile : Migration
|
|
{
|
|
/// <inheritdoc />
|
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "VideoProfile",
|
|
table: "FFmpegProfile",
|
|
type: "TEXT",
|
|
nullable: true);
|
|
|
|
migrationBuilder.Sql("UPDATE FFmpegProfile SET VideoProfile = 'high'");
|
|
}
|
|
|
|
/// <inheritdoc />
|
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.DropColumn(
|
|
name: "VideoProfile",
|
|
table: "FFmpegProfile");
|
|
}
|
|
}
|
|
}
|