* add explicit warning for zero/invalid duration media items * set dateadded on plex media versions * add media stream table * save local media streams to db * save plex media streams to db * add preferred language settings (no validation) * use preferred language if possible * code cleanup * proper language code validation * force scan of all libraries to pull in media streams
20 lines
615 B
C#
20 lines
615 B
C#
using Microsoft.EntityFrameworkCore.Migrations;
|
|
|
|
namespace ErsatzTV.Infrastructure.Migrations
|
|
{
|
|
public partial class Add_ChannelPreferredLanguageCode : Migration
|
|
{
|
|
protected override void Up(MigrationBuilder migrationBuilder) =>
|
|
migrationBuilder.AddColumn<string>(
|
|
"PreferredLanguageCode",
|
|
"Channel",
|
|
"TEXT",
|
|
nullable: true);
|
|
|
|
protected override void Down(MigrationBuilder migrationBuilder) =>
|
|
migrationBuilder.DropColumn(
|
|
"PreferredLanguageCode",
|
|
"Channel");
|
|
}
|
|
}
|