mirror of https://github.com/ErsatzTV/ErsatzTV.git
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.
63 lines
2.0 KiB
63 lines
2.0 KiB
using System; |
|
using Microsoft.EntityFrameworkCore.Migrations; |
|
|
|
#nullable disable |
|
|
|
namespace ErsatzTV.Infrastructure.MySql.Migrations |
|
{ |
|
/// <inheritdoc /> |
|
public partial class Add_PlayoutItemBlockKey : Migration |
|
{ |
|
/// <inheritdoc /> |
|
protected override void Up(MigrationBuilder migrationBuilder) |
|
{ |
|
migrationBuilder.AddColumn<DateTime>( |
|
name: "DateUpdated", |
|
table: "Template", |
|
type: "datetime(6)", |
|
nullable: false, |
|
defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified)); |
|
|
|
migrationBuilder.AddColumn<DateTime>( |
|
name: "DateUpdated", |
|
table: "PlayoutTemplate", |
|
type: "datetime(6)", |
|
nullable: false, |
|
defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified)); |
|
|
|
migrationBuilder.AddColumn<string>( |
|
name: "BlockKey", |
|
table: "PlayoutItem", |
|
type: "longtext", |
|
nullable: true) |
|
.Annotation("MySql:CharSet", "utf8mb4"); |
|
|
|
migrationBuilder.AddColumn<DateTime>( |
|
name: "DateUpdated", |
|
table: "Block", |
|
type: "datetime(6)", |
|
nullable: false, |
|
defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified)); |
|
} |
|
|
|
/// <inheritdoc /> |
|
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"); |
|
} |
|
} |
|
}
|
|
|