using Microsoft.EntityFrameworkCore.Migrations; #nullable disable namespace ErsatzTV.Infrastructure.Sqlite.Migrations { public partial class Add_SubtitlesProperties : Migration { protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.AddColumn( name: "Codec", table: "Subtitle", type: "TEXT", nullable: true); migrationBuilder.AddColumn( name: "Default", table: "Subtitle", type: "INTEGER", nullable: false, defaultValue: false); migrationBuilder.AddColumn( name: "Forced", table: "Subtitle", type: "INTEGER", nullable: false, defaultValue: false); migrationBuilder.AddColumn( name: "Language", table: "Subtitle", type: "TEXT", nullable: true); migrationBuilder.AddColumn( name: "StreamIndex", table: "Subtitle", type: "INTEGER", nullable: false, defaultValue: 0); } protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.DropColumn( name: "Codec", table: "Subtitle"); migrationBuilder.DropColumn( name: "Default", table: "Subtitle"); migrationBuilder.DropColumn( name: "Forced", table: "Subtitle"); migrationBuilder.DropColumn( name: "Language", table: "Subtitle"); migrationBuilder.DropColumn( name: "StreamIndex", table: "Subtitle"); } } }