using System; using Microsoft.EntityFrameworkCore.Migrations; #nullable disable namespace ErsatzTV.Infrastructure.MySql.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: "int", nullable: false, defaultValue: 0); migrationBuilder.AddColumn( name: "EndMonth", table: "PlayoutTemplate", type: "int", nullable: false, defaultValue: 0); migrationBuilder.AddColumn( name: "LimitToDateRange", table: "PlayoutTemplate", type: "tinyint(1)", nullable: false, defaultValue: false); migrationBuilder.AddColumn( name: "StartDay", table: "PlayoutTemplate", type: "int", nullable: false, defaultValue: 0); migrationBuilder.AddColumn( name: "StartMonth", table: "PlayoutTemplate", type: "int", 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: "datetime(6)", nullable: true); migrationBuilder.AddColumn( name: "StartDate", table: "PlayoutTemplate", type: "datetime(6)", nullable: true); } } }