Stream custom live channels using your own media
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

94 lines
2.8 KiB

using System;
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace ErsatzTV.Infrastructure.MySql.Migrations
{
/// <inheritdoc />
public partial class Rework_PlayoutTemplate_ActiveDateRange : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "EndDate",
table: "PlayoutTemplate");
migrationBuilder.DropColumn(
name: "StartDate",
table: "PlayoutTemplate");
migrationBuilder.AddColumn<int>(
name: "EndDay",
table: "PlayoutTemplate",
type: "int",
nullable: false,
defaultValue: 0);
migrationBuilder.AddColumn<int>(
name: "EndMonth",
table: "PlayoutTemplate",
type: "int",
nullable: false,
defaultValue: 0);
migrationBuilder.AddColumn<bool>(
name: "LimitToDateRange",
table: "PlayoutTemplate",
type: "tinyint(1)",
nullable: false,
defaultValue: false);
migrationBuilder.AddColumn<int>(
name: "StartDay",
table: "PlayoutTemplate",
type: "int",
nullable: false,
defaultValue: 0);
migrationBuilder.AddColumn<int>(
name: "StartMonth",
table: "PlayoutTemplate",
type: "int",
nullable: false,
defaultValue: 0);
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "EndDay",
table: "PlayoutTemplate");
migrationBuilder.DropColumn(
name: "EndMonth",
table: "PlayoutTemplate");
migrationBuilder.DropColumn(
name: "LimitToDateRange",
table: "PlayoutTemplate");
migrationBuilder.DropColumn(
name: "StartDay",
table: "PlayoutTemplate");
migrationBuilder.DropColumn(
name: "StartMonth",
table: "PlayoutTemplate");
migrationBuilder.AddColumn<DateTimeOffset>(
name: "EndDate",
table: "PlayoutTemplate",
type: "datetime(6)",
nullable: true);
migrationBuilder.AddColumn<DateTimeOffset>(
name: "StartDate",
table: "PlayoutTemplate",
type: "datetime(6)",
nullable: true);
}
}
}