mirror of https://github.com/ErsatzTV/ErsatzTV.git
Browse Source
* update dependencies * add active date range to block playout templates editorpull/1664/head
17 changed files with 10673 additions and 14 deletions
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,55 @@
@@ -0,0 +1,55 @@
|
||||
using System; |
||||
using Microsoft.EntityFrameworkCore.Migrations; |
||||
|
||||
#nullable disable |
||||
|
||||
namespace ErsatzTV.Infrastructure.MySql.Migrations |
||||
{ |
||||
/// <inheritdoc />
|
||||
public partial class PlayoutTemplate_OptionalDateRange : Migration |
||||
{ |
||||
/// <inheritdoc />
|
||||
protected override void Up(MigrationBuilder migrationBuilder) |
||||
{ |
||||
migrationBuilder.AlterColumn<DateTimeOffset>( |
||||
name: "StartDate", |
||||
table: "PlayoutTemplate", |
||||
type: "datetime(6)", |
||||
nullable: true, |
||||
oldClrType: typeof(DateTimeOffset), |
||||
oldType: "datetime(6)"); |
||||
|
||||
migrationBuilder.AlterColumn<DateTimeOffset>( |
||||
name: "EndDate", |
||||
table: "PlayoutTemplate", |
||||
type: "datetime(6)", |
||||
nullable: true, |
||||
oldClrType: typeof(DateTimeOffset), |
||||
oldType: "datetime(6)"); |
||||
} |
||||
|
||||
/// <inheritdoc />
|
||||
protected override void Down(MigrationBuilder migrationBuilder) |
||||
{ |
||||
migrationBuilder.AlterColumn<DateTimeOffset>( |
||||
name: "StartDate", |
||||
table: "PlayoutTemplate", |
||||
type: "datetime(6)", |
||||
nullable: false, |
||||
defaultValue: new DateTimeOffset(new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), new TimeSpan(0, 0, 0, 0, 0)), |
||||
oldClrType: typeof(DateTimeOffset), |
||||
oldType: "datetime(6)", |
||||
oldNullable: true); |
||||
|
||||
migrationBuilder.AlterColumn<DateTimeOffset>( |
||||
name: "EndDate", |
||||
table: "PlayoutTemplate", |
||||
type: "datetime(6)", |
||||
nullable: false, |
||||
defaultValue: new DateTimeOffset(new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), new TimeSpan(0, 0, 0, 0, 0)), |
||||
oldClrType: typeof(DateTimeOffset), |
||||
oldType: "datetime(6)", |
||||
oldNullable: true); |
||||
} |
||||
} |
||||
} |
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,55 @@
@@ -0,0 +1,55 @@
|
||||
using System; |
||||
using Microsoft.EntityFrameworkCore.Migrations; |
||||
|
||||
#nullable disable |
||||
|
||||
namespace ErsatzTV.Infrastructure.Sqlite.Migrations |
||||
{ |
||||
/// <inheritdoc />
|
||||
public partial class PlayoutTemplate_OptionalDateRange : Migration |
||||
{ |
||||
/// <inheritdoc />
|
||||
protected override void Up(MigrationBuilder migrationBuilder) |
||||
{ |
||||
migrationBuilder.AlterColumn<DateTimeOffset>( |
||||
name: "StartDate", |
||||
table: "PlayoutTemplate", |
||||
type: "TEXT", |
||||
nullable: true, |
||||
oldClrType: typeof(DateTimeOffset), |
||||
oldType: "TEXT"); |
||||
|
||||
migrationBuilder.AlterColumn<DateTimeOffset>( |
||||
name: "EndDate", |
||||
table: "PlayoutTemplate", |
||||
type: "TEXT", |
||||
nullable: true, |
||||
oldClrType: typeof(DateTimeOffset), |
||||
oldType: "TEXT"); |
||||
} |
||||
|
||||
/// <inheritdoc />
|
||||
protected override void Down(MigrationBuilder migrationBuilder) |
||||
{ |
||||
migrationBuilder.AlterColumn<DateTimeOffset>( |
||||
name: "StartDate", |
||||
table: "PlayoutTemplate", |
||||
type: "TEXT", |
||||
nullable: false, |
||||
defaultValue: new DateTimeOffset(new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), new TimeSpan(0, 0, 0, 0, 0)), |
||||
oldClrType: typeof(DateTimeOffset), |
||||
oldType: "TEXT", |
||||
oldNullable: true); |
||||
|
||||
migrationBuilder.AlterColumn<DateTimeOffset>( |
||||
name: "EndDate", |
||||
table: "PlayoutTemplate", |
||||
type: "TEXT", |
||||
nullable: false, |
||||
defaultValue: new DateTimeOffset(new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), new TimeSpan(0, 0, 0, 0, 0)), |
||||
oldClrType: typeof(DateTimeOffset), |
||||
oldType: "TEXT", |
||||
oldNullable: true); |
||||
} |
||||
} |
||||
} |
Loading…
Reference in new issue