custom collection playback order (#64)
* add custom index to collection items * add custom collection order to ui * cleanup
This commit is contained in:
Generated
+1626
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,19 @@
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
namespace ErsatzTV.Infrastructure.Migrations
|
||||
{
|
||||
public partial class Add_CollectionItem_CustomIndex : Migration
|
||||
{
|
||||
protected override void Up(MigrationBuilder migrationBuilder) =>
|
||||
migrationBuilder.AddColumn<int>(
|
||||
"CustomIndex",
|
||||
"CollectionItem",
|
||||
"INTEGER",
|
||||
nullable: true);
|
||||
|
||||
protected override void Down(MigrationBuilder migrationBuilder) =>
|
||||
migrationBuilder.DropColumn(
|
||||
"CustomIndex",
|
||||
"CollectionItem");
|
||||
}
|
||||
}
|
||||
Generated
+1629
File diff suppressed because it is too large
Load Diff
+20
@@ -0,0 +1,20 @@
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
namespace ErsatzTV.Infrastructure.Migrations
|
||||
{
|
||||
public partial class Add_Collection_UseCustomPlaybackOrder : Migration
|
||||
{
|
||||
protected override void Up(MigrationBuilder migrationBuilder) =>
|
||||
migrationBuilder.AddColumn<bool>(
|
||||
"UseCustomPlaybackOrder",
|
||||
"Collection",
|
||||
"INTEGER",
|
||||
nullable: false,
|
||||
defaultValue: false);
|
||||
|
||||
protected override void Down(MigrationBuilder migrationBuilder) =>
|
||||
migrationBuilder.DropColumn(
|
||||
"UseCustomPlaybackOrder",
|
||||
"Collection");
|
||||
}
|
||||
}
|
||||
@@ -110,6 +110,9 @@ namespace ErsatzTV.Infrastructure.Migrations
|
||||
b.Property<string>("Name")
|
||||
.HasColumnType("TEXT");
|
||||
|
||||
b.Property<bool>("UseCustomPlaybackOrder")
|
||||
.HasColumnType("INTEGER");
|
||||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.ToTable("Collection");
|
||||
@@ -125,6 +128,9 @@ namespace ErsatzTV.Infrastructure.Migrations
|
||||
b.Property<int>("MediaItemId")
|
||||
.HasColumnType("INTEGER");
|
||||
|
||||
b.Property<int?>("CustomIndex")
|
||||
.HasColumnType("INTEGER");
|
||||
|
||||
b.HasKey("CollectionId", "MediaItemId");
|
||||
|
||||
b.HasIndex("MediaItemId");
|
||||
|
||||
Reference in New Issue
Block a user