using System;
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace ErsatzTV.Infrastructure.Sqlite.Migrations
{
///
public partial class Add_PlayoutItemBlockKey : Migration
{
///
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn(
name: "DateUpdated",
table: "Template",
type: "TEXT",
nullable: false,
defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified));
migrationBuilder.AddColumn(
name: "DateUpdated",
table: "PlayoutTemplate",
type: "TEXT",
nullable: false,
defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified));
migrationBuilder.AddColumn(
name: "BlockKey",
table: "PlayoutItem",
type: "TEXT",
nullable: true);
migrationBuilder.AddColumn(
name: "DateUpdated",
table: "Block",
type: "TEXT",
nullable: false,
defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified));
}
///
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "DateUpdated",
table: "Template");
migrationBuilder.DropColumn(
name: "DateUpdated",
table: "PlayoutTemplate");
migrationBuilder.DropColumn(
name: "BlockKey",
table: "PlayoutItem");
migrationBuilder.DropColumn(
name: "DateUpdated",
table: "Block");
}
}
}