using Microsoft.EntityFrameworkCore.Migrations; #nullable disable namespace Jellyfin.Server.Implementations.Migrations { /// public partial class FixMediaStreams2 : Migration { /// protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.AlterColumn( name: "Profile", table: "MediaStreamInfos", type: "TEXT", nullable: true, oldClrType: typeof(string), oldType: "TEXT"); migrationBuilder.AlterColumn( name: "Path", table: "MediaStreamInfos", type: "TEXT", nullable: true, oldClrType: typeof(string), oldType: "TEXT"); migrationBuilder.AlterColumn( name: "Language", table: "MediaStreamInfos", type: "TEXT", nullable: true, oldClrType: typeof(string), oldType: "TEXT"); migrationBuilder.AlterColumn( name: "IsInterlaced", table: "MediaStreamInfos", type: "INTEGER", nullable: true, oldClrType: typeof(bool), oldType: "INTEGER"); migrationBuilder.AlterColumn( name: "Codec", table: "MediaStreamInfos", type: "TEXT", nullable: true, oldClrType: typeof(string), oldType: "TEXT"); migrationBuilder.AlterColumn( name: "ChannelLayout", table: "MediaStreamInfos", type: "TEXT", nullable: true, oldClrType: typeof(string), oldType: "TEXT"); migrationBuilder.AlterColumn( name: "AspectRatio", table: "MediaStreamInfos", type: "TEXT", nullable: true, oldClrType: typeof(string), oldType: "TEXT"); } /// protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.AlterColumn( name: "Profile", table: "MediaStreamInfos", type: "TEXT", nullable: false, defaultValue: string.Empty, oldClrType: typeof(string), oldType: "TEXT", oldNullable: true); migrationBuilder.AlterColumn( name: "Path", table: "MediaStreamInfos", type: "TEXT", nullable: false, defaultValue: string.Empty, oldClrType: typeof(string), oldType: "TEXT", oldNullable: true); migrationBuilder.AlterColumn( name: "Language", table: "MediaStreamInfos", type: "TEXT", nullable: false, defaultValue: string.Empty, oldClrType: typeof(string), oldType: "TEXT", oldNullable: true); migrationBuilder.AlterColumn( name: "IsInterlaced", table: "MediaStreamInfos", type: "INTEGER", nullable: false, defaultValue: false, oldClrType: typeof(bool), oldType: "INTEGER", oldNullable: true); migrationBuilder.AlterColumn( name: "Codec", table: "MediaStreamInfos", type: "TEXT", nullable: false, defaultValue: string.Empty, oldClrType: typeof(string), oldType: "TEXT", oldNullable: true); migrationBuilder.AlterColumn( name: "ChannelLayout", table: "MediaStreamInfos", type: "TEXT", nullable: false, defaultValue: string.Empty, oldClrType: typeof(string), oldType: "TEXT", oldNullable: true); migrationBuilder.AlterColumn( name: "AspectRatio", table: "MediaStreamInfos", type: "TEXT", nullable: false, defaultValue: string.Empty, oldClrType: typeof(string), oldType: "TEXT", oldNullable: true); } } }