using System;
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace ErsatzTV.Infrastructure.Sqlite.Migrations
{
///
public partial class Rework_PlayoutTemplate_ActiveDateRange : Migration
{
///
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "EndDate",
table: "PlayoutTemplate");
migrationBuilder.DropColumn(
name: "StartDate",
table: "PlayoutTemplate");
migrationBuilder.AddColumn(
name: "EndDay",
table: "PlayoutTemplate",
type: "INTEGER",
nullable: false,
defaultValue: 0);
migrationBuilder.AddColumn(
name: "EndMonth",
table: "PlayoutTemplate",
type: "INTEGER",
nullable: false,
defaultValue: 0);
migrationBuilder.AddColumn(
name: "LimitToDateRange",
table: "PlayoutTemplate",
type: "INTEGER",
nullable: false,
defaultValue: false);
migrationBuilder.AddColumn(
name: "StartDay",
table: "PlayoutTemplate",
type: "INTEGER",
nullable: false,
defaultValue: 0);
migrationBuilder.AddColumn(
name: "StartMonth",
table: "PlayoutTemplate",
type: "INTEGER",
nullable: false,
defaultValue: 0);
}
///
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(
name: "EndDate",
table: "PlayoutTemplate",
type: "TEXT",
nullable: true);
migrationBuilder.AddColumn(
name: "StartDate",
table: "PlayoutTemplate",
type: "TEXT",
nullable: true);
}
}
}