using Microsoft.EntityFrameworkCore.Migrations; #nullable disable namespace Jellyfin.Server.Implementations.Migrations { /// public partial class FixMediaStreams : Migration { /// protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.AlterColumn( name: "Width", table: "MediaStreamInfos", type: "INTEGER", nullable: true, oldClrType: typeof(int), oldType: "INTEGER"); migrationBuilder.AlterColumn( name: "Title", table: "MediaStreamInfos", type: "TEXT", nullable: true, oldClrType: typeof(string), oldType: "TEXT"); migrationBuilder.AlterColumn( name: "TimeBase", table: "MediaStreamInfos", type: "TEXT", nullable: true, oldClrType: typeof(string), oldType: "TEXT"); migrationBuilder.AlterColumn( name: "StreamType", table: "MediaStreamInfos", type: "INTEGER", nullable: false, defaultValue: 0, oldClrType: typeof(int), oldType: "INTEGER", oldNullable: true); migrationBuilder.AlterColumn( name: "SampleRate", table: "MediaStreamInfos", type: "INTEGER", nullable: true, oldClrType: typeof(int), oldType: "INTEGER"); migrationBuilder.AlterColumn( name: "RpuPresentFlag", table: "MediaStreamInfos", type: "INTEGER", nullable: true, oldClrType: typeof(int), oldType: "INTEGER"); migrationBuilder.AlterColumn( name: "Rotation", table: "MediaStreamInfos", type: "INTEGER", nullable: true, oldClrType: typeof(int), oldType: "INTEGER"); migrationBuilder.AlterColumn( name: "RefFrames", table: "MediaStreamInfos", type: "INTEGER", nullable: true, oldClrType: typeof(int), oldType: "INTEGER"); migrationBuilder.AlterColumn( name: "RealFrameRate", table: "MediaStreamInfos", type: "REAL", nullable: true, oldClrType: typeof(float), oldType: "REAL"); 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: "NalLengthSize", table: "MediaStreamInfos", type: "TEXT", nullable: true, oldClrType: typeof(string), oldType: "TEXT"); migrationBuilder.AlterColumn( name: "Level", table: "MediaStreamInfos", type: "REAL", nullable: true, oldClrType: typeof(float), oldType: "REAL"); migrationBuilder.AlterColumn( name: "Language", table: "MediaStreamInfos", type: "TEXT", nullable: false, defaultValue: string.Empty, oldClrType: typeof(string), oldType: "TEXT", oldNullable: true); migrationBuilder.AlterColumn( name: "IsHearingImpaired", table: "MediaStreamInfos", type: "INTEGER", nullable: true, oldClrType: typeof(bool), oldType: "INTEGER"); migrationBuilder.AlterColumn( name: "IsAvc", table: "MediaStreamInfos", type: "INTEGER", nullable: true, oldClrType: typeof(bool), oldType: "INTEGER"); migrationBuilder.AlterColumn( name: "IsAnamorphic", table: "MediaStreamInfos", type: "INTEGER", nullable: true, oldClrType: typeof(bool), oldType: "INTEGER"); migrationBuilder.AlterColumn( name: "Height", table: "MediaStreamInfos", type: "INTEGER", nullable: true, oldClrType: typeof(int), oldType: "INTEGER"); migrationBuilder.AlterColumn( name: "ElPresentFlag", table: "MediaStreamInfos", type: "INTEGER", nullable: true, oldClrType: typeof(int), oldType: "INTEGER"); migrationBuilder.AlterColumn( name: "DvVersionMinor", table: "MediaStreamInfos", type: "INTEGER", nullable: true, oldClrType: typeof(int), oldType: "INTEGER"); migrationBuilder.AlterColumn( name: "DvVersionMajor", table: "MediaStreamInfos", type: "INTEGER", nullable: true, oldClrType: typeof(int), oldType: "INTEGER"); migrationBuilder.AlterColumn( name: "DvProfile", table: "MediaStreamInfos", type: "INTEGER", nullable: true, oldClrType: typeof(int), oldType: "INTEGER"); migrationBuilder.AlterColumn( name: "DvLevel", table: "MediaStreamInfos", type: "INTEGER", nullable: true, oldClrType: typeof(int), oldType: "INTEGER"); migrationBuilder.AlterColumn( name: "DvBlSignalCompatibilityId", table: "MediaStreamInfos", type: "INTEGER", nullable: true, oldClrType: typeof(int), oldType: "INTEGER"); migrationBuilder.AlterColumn( name: "Comment", table: "MediaStreamInfos", type: "TEXT", nullable: true, oldClrType: typeof(string), oldType: "TEXT"); migrationBuilder.AlterColumn( name: "ColorTransfer", table: "MediaStreamInfos", type: "TEXT", nullable: true, oldClrType: typeof(string), oldType: "TEXT"); migrationBuilder.AlterColumn( name: "ColorSpace", table: "MediaStreamInfos", type: "TEXT", nullable: true, oldClrType: typeof(string), oldType: "TEXT"); migrationBuilder.AlterColumn( name: "ColorPrimaries", table: "MediaStreamInfos", type: "TEXT", nullable: true, oldClrType: typeof(string), oldType: "TEXT"); migrationBuilder.AlterColumn( name: "CodecTimeBase", table: "MediaStreamInfos", type: "TEXT", nullable: true, oldClrType: typeof(string), oldType: "TEXT"); migrationBuilder.AlterColumn( name: "CodecTag", table: "MediaStreamInfos", type: "TEXT", nullable: true, oldClrType: typeof(string), oldType: "TEXT"); migrationBuilder.AlterColumn( name: "Codec", table: "MediaStreamInfos", type: "TEXT", nullable: false, defaultValue: string.Empty, oldClrType: typeof(string), oldType: "TEXT", oldNullable: true); migrationBuilder.AlterColumn( name: "Channels", table: "MediaStreamInfos", type: "INTEGER", nullable: true, oldClrType: typeof(int), oldType: "INTEGER"); migrationBuilder.AlterColumn( name: "ChannelLayout", table: "MediaStreamInfos", type: "TEXT", nullable: false, defaultValue: string.Empty, oldClrType: typeof(string), oldType: "TEXT", oldNullable: true); migrationBuilder.AlterColumn( name: "BlPresentFlag", table: "MediaStreamInfos", type: "INTEGER", nullable: true, oldClrType: typeof(int), oldType: "INTEGER"); migrationBuilder.AlterColumn( name: "BitRate", table: "MediaStreamInfos", type: "INTEGER", nullable: true, oldClrType: typeof(int), oldType: "INTEGER"); migrationBuilder.AlterColumn( name: "BitDepth", table: "MediaStreamInfos", type: "INTEGER", nullable: true, oldClrType: typeof(int), oldType: "INTEGER"); migrationBuilder.AlterColumn( name: "AverageFrameRate", table: "MediaStreamInfos", type: "REAL", nullable: true, oldClrType: typeof(float), oldType: "REAL"); migrationBuilder.AlterColumn( name: "AspectRatio", table: "MediaStreamInfos", type: "TEXT", nullable: false, defaultValue: string.Empty, oldClrType: typeof(string), oldType: "TEXT", oldNullable: true); } /// protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.AlterColumn( name: "Width", table: "MediaStreamInfos", type: "INTEGER", nullable: false, defaultValue: 0, oldClrType: typeof(int), oldType: "INTEGER", oldNullable: true); migrationBuilder.AlterColumn( name: "Title", table: "MediaStreamInfos", type: "TEXT", nullable: false, defaultValue: string.Empty, oldClrType: typeof(string), oldType: "TEXT", oldNullable: true); migrationBuilder.AlterColumn( name: "TimeBase", table: "MediaStreamInfos", type: "TEXT", nullable: false, defaultValue: string.Empty, oldClrType: typeof(string), oldType: "TEXT", oldNullable: true); migrationBuilder.AlterColumn( name: "StreamType", table: "MediaStreamInfos", type: "INTEGER", nullable: true, oldClrType: typeof(int), oldType: "INTEGER"); migrationBuilder.AlterColumn( name: "SampleRate", table: "MediaStreamInfos", type: "INTEGER", nullable: false, defaultValue: 0, oldClrType: typeof(int), oldType: "INTEGER", oldNullable: true); migrationBuilder.AlterColumn( name: "RpuPresentFlag", table: "MediaStreamInfos", type: "INTEGER", nullable: false, defaultValue: 0, oldClrType: typeof(int), oldType: "INTEGER", oldNullable: true); migrationBuilder.AlterColumn( name: "Rotation", table: "MediaStreamInfos", type: "INTEGER", nullable: false, defaultValue: 0, oldClrType: typeof(int), oldType: "INTEGER", oldNullable: true); migrationBuilder.AlterColumn( name: "RefFrames", table: "MediaStreamInfos", type: "INTEGER", nullable: false, defaultValue: 0, oldClrType: typeof(int), oldType: "INTEGER", oldNullable: true); migrationBuilder.AlterColumn( name: "RealFrameRate", table: "MediaStreamInfos", type: "REAL", nullable: false, defaultValue: 0f, oldClrType: typeof(float), oldType: "REAL", oldNullable: true); 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: "NalLengthSize", table: "MediaStreamInfos", type: "TEXT", nullable: false, defaultValue: string.Empty, oldClrType: typeof(string), oldType: "TEXT", oldNullable: true); migrationBuilder.AlterColumn( name: "Level", table: "MediaStreamInfos", type: "REAL", nullable: false, defaultValue: 0f, oldClrType: typeof(float), oldType: "REAL", oldNullable: true); migrationBuilder.AlterColumn( name: "Language", table: "MediaStreamInfos", type: "TEXT", nullable: true, oldClrType: typeof(string), oldType: "TEXT"); migrationBuilder.AlterColumn( name: "IsHearingImpaired", table: "MediaStreamInfos", type: "INTEGER", nullable: false, defaultValue: false, oldClrType: typeof(bool), oldType: "INTEGER", oldNullable: true); migrationBuilder.AlterColumn( name: "IsAvc", table: "MediaStreamInfos", type: "INTEGER", nullable: false, defaultValue: false, oldClrType: typeof(bool), oldType: "INTEGER", oldNullable: true); migrationBuilder.AlterColumn( name: "IsAnamorphic", table: "MediaStreamInfos", type: "INTEGER", nullable: false, defaultValue: false, oldClrType: typeof(bool), oldType: "INTEGER", oldNullable: true); migrationBuilder.AlterColumn( name: "Height", table: "MediaStreamInfos", type: "INTEGER", nullable: false, defaultValue: 0, oldClrType: typeof(int), oldType: "INTEGER", oldNullable: true); migrationBuilder.AlterColumn( name: "ElPresentFlag", table: "MediaStreamInfos", type: "INTEGER", nullable: false, defaultValue: 0, oldClrType: typeof(int), oldType: "INTEGER", oldNullable: true); migrationBuilder.AlterColumn( name: "DvVersionMinor", table: "MediaStreamInfos", type: "INTEGER", nullable: false, defaultValue: 0, oldClrType: typeof(int), oldType: "INTEGER", oldNullable: true); migrationBuilder.AlterColumn( name: "DvVersionMajor", table: "MediaStreamInfos", type: "INTEGER", nullable: false, defaultValue: 0, oldClrType: typeof(int), oldType: "INTEGER", oldNullable: true); migrationBuilder.AlterColumn( name: "DvProfile", table: "MediaStreamInfos", type: "INTEGER", nullable: false, defaultValue: 0, oldClrType: typeof(int), oldType: "INTEGER", oldNullable: true); migrationBuilder.AlterColumn( name: "DvLevel", table: "MediaStreamInfos", type: "INTEGER", nullable: false, defaultValue: 0, oldClrType: typeof(int), oldType: "INTEGER", oldNullable: true); migrationBuilder.AlterColumn( name: "DvBlSignalCompatibilityId", table: "MediaStreamInfos", type: "INTEGER", nullable: false, defaultValue: 0, oldClrType: typeof(int), oldType: "INTEGER", oldNullable: true); migrationBuilder.AlterColumn( name: "Comment", table: "MediaStreamInfos", type: "TEXT", nullable: false, defaultValue: string.Empty, oldClrType: typeof(string), oldType: "TEXT", oldNullable: true); migrationBuilder.AlterColumn( name: "ColorTransfer", table: "MediaStreamInfos", type: "TEXT", nullable: false, defaultValue: string.Empty, oldClrType: typeof(string), oldType: "TEXT", oldNullable: true); migrationBuilder.AlterColumn( name: "ColorSpace", table: "MediaStreamInfos", type: "TEXT", nullable: false, defaultValue: string.Empty, oldClrType: typeof(string), oldType: "TEXT", oldNullable: true); migrationBuilder.AlterColumn( name: "ColorPrimaries", table: "MediaStreamInfos", type: "TEXT", nullable: false, defaultValue: string.Empty, oldClrType: typeof(string), oldType: "TEXT", oldNullable: true); migrationBuilder.AlterColumn( name: "CodecTimeBase", table: "MediaStreamInfos", type: "TEXT", nullable: false, defaultValue: string.Empty, oldClrType: typeof(string), oldType: "TEXT", oldNullable: true); migrationBuilder.AlterColumn( name: "CodecTag", table: "MediaStreamInfos", type: "TEXT", nullable: false, defaultValue: string.Empty, oldClrType: typeof(string), oldType: "TEXT", oldNullable: true); migrationBuilder.AlterColumn( name: "Codec", table: "MediaStreamInfos", type: "TEXT", nullable: true, oldClrType: typeof(string), oldType: "TEXT"); migrationBuilder.AlterColumn( name: "Channels", table: "MediaStreamInfos", type: "INTEGER", nullable: false, defaultValue: 0, oldClrType: typeof(int), oldType: "INTEGER", oldNullable: true); migrationBuilder.AlterColumn( name: "ChannelLayout", table: "MediaStreamInfos", type: "TEXT", nullable: true, oldClrType: typeof(string), oldType: "TEXT"); migrationBuilder.AlterColumn( name: "BlPresentFlag", table: "MediaStreamInfos", type: "INTEGER", nullable: false, defaultValue: 0, oldClrType: typeof(int), oldType: "INTEGER", oldNullable: true); migrationBuilder.AlterColumn( name: "BitRate", table: "MediaStreamInfos", type: "INTEGER", nullable: false, defaultValue: 0, oldClrType: typeof(int), oldType: "INTEGER", oldNullable: true); migrationBuilder.AlterColumn( name: "BitDepth", table: "MediaStreamInfos", type: "INTEGER", nullable: false, defaultValue: 0, oldClrType: typeof(int), oldType: "INTEGER", oldNullable: true); migrationBuilder.AlterColumn( name: "AverageFrameRate", table: "MediaStreamInfos", type: "REAL", nullable: false, defaultValue: 0f, oldClrType: typeof(float), oldType: "REAL", oldNullable: true); migrationBuilder.AlterColumn( name: "AspectRatio", table: "MediaStreamInfos", type: "TEXT", nullable: true, oldClrType: typeof(string), oldType: "TEXT"); } } }