mirror of https://github.com/ErsatzTV/ErsatzTV.git
Browse Source
* add channel playout source (doesn't do anything yet) * configure mirror channel * fix mirror playback * sync epg for mirror channel * update changelogpull/2391/head
24 changed files with 12929 additions and 19 deletions
@ -0,0 +1,7 @@
@@ -0,0 +1,7 @@
|
||||
namespace ErsatzTV.Core.Domain; |
||||
|
||||
public enum ChannelPlayoutSource |
||||
{ |
||||
Generated = 0, |
||||
Mirror = 1 |
||||
} |
||||
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,71 @@
@@ -0,0 +1,71 @@
|
||||
using System; |
||||
using Microsoft.EntityFrameworkCore.Migrations; |
||||
|
||||
#nullable disable |
||||
|
||||
namespace ErsatzTV.Infrastructure.MySql.Migrations |
||||
{ |
||||
/// <inheritdoc />
|
||||
public partial class Add_ChannelPlayoutSource : Migration |
||||
{ |
||||
/// <inheritdoc />
|
||||
protected override void Up(MigrationBuilder migrationBuilder) |
||||
{ |
||||
migrationBuilder.AddColumn<int>( |
||||
name: "MirrorSourceChannelId", |
||||
table: "Channel", |
||||
type: "int", |
||||
nullable: true); |
||||
|
||||
migrationBuilder.AddColumn<TimeSpan>( |
||||
name: "PlayoutOffset", |
||||
table: "Channel", |
||||
type: "time(6)", |
||||
nullable: true); |
||||
|
||||
migrationBuilder.AddColumn<int>( |
||||
name: "PlayoutSource", |
||||
table: "Channel", |
||||
type: "int", |
||||
nullable: false, |
||||
defaultValue: 0); |
||||
|
||||
migrationBuilder.CreateIndex( |
||||
name: "IX_Channel_MirrorSourceChannelId", |
||||
table: "Channel", |
||||
column: "MirrorSourceChannelId"); |
||||
|
||||
migrationBuilder.AddForeignKey( |
||||
name: "FK_Channel_Channel_MirrorSourceChannelId", |
||||
table: "Channel", |
||||
column: "MirrorSourceChannelId", |
||||
principalTable: "Channel", |
||||
principalColumn: "Id", |
||||
onDelete: ReferentialAction.SetNull); |
||||
} |
||||
|
||||
/// <inheritdoc />
|
||||
protected override void Down(MigrationBuilder migrationBuilder) |
||||
{ |
||||
migrationBuilder.DropForeignKey( |
||||
name: "FK_Channel_Channel_MirrorSourceChannelId", |
||||
table: "Channel"); |
||||
|
||||
migrationBuilder.DropIndex( |
||||
name: "IX_Channel_MirrorSourceChannelId", |
||||
table: "Channel"); |
||||
|
||||
migrationBuilder.DropColumn( |
||||
name: "MirrorSourceChannelId", |
||||
table: "Channel"); |
||||
|
||||
migrationBuilder.DropColumn( |
||||
name: "PlayoutOffset", |
||||
table: "Channel"); |
||||
|
||||
migrationBuilder.DropColumn( |
||||
name: "PlayoutSource", |
||||
table: "Channel"); |
||||
} |
||||
} |
||||
} |
||||
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,71 @@
@@ -0,0 +1,71 @@
|
||||
using System; |
||||
using Microsoft.EntityFrameworkCore.Migrations; |
||||
|
||||
#nullable disable |
||||
|
||||
namespace ErsatzTV.Infrastructure.Sqlite.Migrations |
||||
{ |
||||
/// <inheritdoc />
|
||||
public partial class Add_ChannelPlayoutSource : Migration |
||||
{ |
||||
/// <inheritdoc />
|
||||
protected override void Up(MigrationBuilder migrationBuilder) |
||||
{ |
||||
migrationBuilder.AddColumn<int>( |
||||
name: "MirrorSourceChannelId", |
||||
table: "Channel", |
||||
type: "INTEGER", |
||||
nullable: true); |
||||
|
||||
migrationBuilder.AddColumn<TimeSpan>( |
||||
name: "PlayoutOffset", |
||||
table: "Channel", |
||||
type: "TEXT", |
||||
nullable: true); |
||||
|
||||
migrationBuilder.AddColumn<int>( |
||||
name: "PlayoutSource", |
||||
table: "Channel", |
||||
type: "INTEGER", |
||||
nullable: false, |
||||
defaultValue: 0); |
||||
|
||||
migrationBuilder.CreateIndex( |
||||
name: "IX_Channel_MirrorSourceChannelId", |
||||
table: "Channel", |
||||
column: "MirrorSourceChannelId"); |
||||
|
||||
migrationBuilder.AddForeignKey( |
||||
name: "FK_Channel_Channel_MirrorSourceChannelId", |
||||
table: "Channel", |
||||
column: "MirrorSourceChannelId", |
||||
principalTable: "Channel", |
||||
principalColumn: "Id", |
||||
onDelete: ReferentialAction.SetNull); |
||||
} |
||||
|
||||
/// <inheritdoc />
|
||||
protected override void Down(MigrationBuilder migrationBuilder) |
||||
{ |
||||
migrationBuilder.DropForeignKey( |
||||
name: "FK_Channel_Channel_MirrorSourceChannelId", |
||||
table: "Channel"); |
||||
|
||||
migrationBuilder.DropIndex( |
||||
name: "IX_Channel_MirrorSourceChannelId", |
||||
table: "Channel"); |
||||
|
||||
migrationBuilder.DropColumn( |
||||
name: "MirrorSourceChannelId", |
||||
table: "Channel"); |
||||
|
||||
migrationBuilder.DropColumn( |
||||
name: "PlayoutOffset", |
||||
table: "Channel"); |
||||
|
||||
migrationBuilder.DropColumn( |
||||
name: "PlayoutSource", |
||||
table: "Channel"); |
||||
} |
||||
} |
||||
} |
||||
Loading…
Reference in new issue