* Use chapters in duration filler * add new option, migrations, and update filler preset editor * Revert "Use chapters in duration filler" This reverts commit d87a8a240a78c1cbca7b311125f8d3a84645d296. * scaffold splitting filler by chapter * implement chapters as filler * update changelog * re-add migrations * Add duration for ChapterMediaItem --------- Co-authored-by: Jason Dove <1695733+jasongdove@users.noreply.github.com>
30 lines
843 B
C#
30 lines
843 B
C#
using Microsoft.EntityFrameworkCore.Migrations;
|
|
|
|
#nullable disable
|
|
|
|
namespace ErsatzTV.Infrastructure.MySql.Migrations
|
|
{
|
|
/// <inheritdoc />
|
|
public partial class FillerPreset_UseChaptersAsMediaItems : Migration
|
|
{
|
|
/// <inheritdoc />
|
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.AddColumn<bool>(
|
|
name: "UseChaptersAsMediaItems",
|
|
table: "FillerPreset",
|
|
type: "tinyint(1)",
|
|
nullable: false,
|
|
defaultValue: false);
|
|
}
|
|
|
|
/// <inheritdoc />
|
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.DropColumn(
|
|
name: "UseChaptersAsMediaItems",
|
|
table: "FillerPreset");
|
|
}
|
|
}
|
|
}
|