mirror of https://github.com/ErsatzTV/ErsatzTV.git
24 changed files with 11875 additions and 33 deletions
@ -0,0 +1,17 @@ |
|||||||
|
namespace ErsatzTV.Core.Domain; |
||||||
|
|
||||||
|
public enum MultipleMode |
||||||
|
{ |
||||||
|
// static integer count
|
||||||
|
Count = 0, |
||||||
|
|
||||||
|
// current size of the collection
|
||||||
|
CollectionSize = 1, |
||||||
|
|
||||||
|
// current size of the playlist item
|
||||||
|
PlaylistItemSize = 2, |
||||||
|
|
||||||
|
// from one item (not a multi-episode) to however many multi-episodes are linked together
|
||||||
|
// is this limited to chronological and season/episode?
|
||||||
|
MultiEpisodeSize = 3 |
||||||
|
} |
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,31 @@ |
|||||||
|
using Microsoft.EntityFrameworkCore.Migrations; |
||||||
|
|
||||||
|
#nullable disable |
||||||
|
|
||||||
|
namespace ErsatzTV.Infrastructure.MySql.Migrations |
||||||
|
{ |
||||||
|
/// <inheritdoc />
|
||||||
|
public partial class Add_ProgramScheduleItemMultipleMode : Migration |
||||||
|
{ |
||||||
|
/// <inheritdoc />
|
||||||
|
protected override void Up(MigrationBuilder migrationBuilder) |
||||||
|
{ |
||||||
|
migrationBuilder.AddColumn<int>( |
||||||
|
name: "MultipleMode", |
||||||
|
table: "ProgramScheduleMultipleItem", |
||||||
|
type: "int", |
||||||
|
nullable: false, |
||||||
|
defaultValue: 0); |
||||||
|
|
||||||
|
migrationBuilder.Sql(@"UPDATE `ProgramScheduleMultipleItem` SET `MultipleMode` = 1 WHERE `Count` = 0"); |
||||||
|
} |
||||||
|
|
||||||
|
/// <inheritdoc />
|
||||||
|
protected override void Down(MigrationBuilder migrationBuilder) |
||||||
|
{ |
||||||
|
migrationBuilder.DropColumn( |
||||||
|
name: "MultipleMode", |
||||||
|
table: "ProgramScheduleMultipleItem"); |
||||||
|
} |
||||||
|
} |
||||||
|
} |
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,31 @@ |
|||||||
|
using Microsoft.EntityFrameworkCore.Migrations; |
||||||
|
|
||||||
|
#nullable disable |
||||||
|
|
||||||
|
namespace ErsatzTV.Infrastructure.Sqlite.Migrations |
||||||
|
{ |
||||||
|
/// <inheritdoc />
|
||||||
|
public partial class Add_ProgramScheduleItemMultipleMode : Migration |
||||||
|
{ |
||||||
|
/// <inheritdoc />
|
||||||
|
protected override void Up(MigrationBuilder migrationBuilder) |
||||||
|
{ |
||||||
|
migrationBuilder.AddColumn<int>( |
||||||
|
name: "MultipleMode", |
||||||
|
table: "ProgramScheduleMultipleItem", |
||||||
|
type: "INTEGER", |
||||||
|
nullable: false, |
||||||
|
defaultValue: 0); |
||||||
|
|
||||||
|
migrationBuilder.Sql(@"UPDATE `ProgramScheduleMultipleItem` SET `MultipleMode` = 1 WHERE `Count` = 0"); |
||||||
|
} |
||||||
|
|
||||||
|
/// <inheritdoc />
|
||||||
|
protected override void Down(MigrationBuilder migrationBuilder) |
||||||
|
{ |
||||||
|
migrationBuilder.DropColumn( |
||||||
|
name: "MultipleMode", |
||||||
|
table: "ProgramScheduleMultipleItem"); |
||||||
|
} |
||||||
|
} |
||||||
|
} |
Loading…
Reference in new issue