mirror of https://github.com/ErsatzTV/ErsatzTV.git
Browse Source
* minor tweaks * fix block change detection bug * history cleanup cleanuppull/2344/head
9 changed files with 12631 additions and 27 deletions
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,31 @@
@@ -0,0 +1,31 @@
|
||||
using Microsoft.EntityFrameworkCore.Migrations; |
||||
|
||||
#nullable disable |
||||
|
||||
namespace ErsatzTV.Infrastructure.MySql.Migrations |
||||
{ |
||||
/// <inheritdoc />
|
||||
public partial class Populate_PlayoutHistory_Finish : Migration |
||||
{ |
||||
/// <inheritdoc />
|
||||
protected override void Up(MigrationBuilder migrationBuilder) |
||||
{ |
||||
migrationBuilder.Sql( |
||||
@"UPDATE PlayoutHistory
|
||||
SET Finish = |
||||
(SELECT PlayoutItem.Finish |
||||
FROM PlayoutItem |
||||
WHERE PlayoutItem.PlayoutId = PlayoutHistory.PlayoutId |
||||
AND PlayoutItem.Start = PlayoutHistory.`When`) |
||||
WHERE EXISTS (SELECT 1 |
||||
FROM PlayoutItem |
||||
WHERE PlayoutItem.PlayoutId = PlayoutHistory.PlayoutId |
||||
AND PlayoutItem.Start = PlayoutHistory.`When`);");
|
||||
} |
||||
|
||||
/// <inheritdoc />
|
||||
protected override void Down(MigrationBuilder migrationBuilder) |
||||
{ |
||||
} |
||||
} |
||||
} |
||||
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,31 @@
@@ -0,0 +1,31 @@
|
||||
using Microsoft.EntityFrameworkCore.Migrations; |
||||
|
||||
#nullable disable |
||||
|
||||
namespace ErsatzTV.Infrastructure.Sqlite.Migrations |
||||
{ |
||||
/// <inheritdoc />
|
||||
public partial class Populate_PlayoutHistory_Finish : Migration |
||||
{ |
||||
/// <inheritdoc />
|
||||
protected override void Up(MigrationBuilder migrationBuilder) |
||||
{ |
||||
migrationBuilder.Sql( |
||||
@"UPDATE PlayoutHistory
|
||||
SET Finish = |
||||
(SELECT PlayoutItem.Finish |
||||
FROM PlayoutItem |
||||
WHERE PlayoutItem.PlayoutId = PlayoutHistory.PlayoutId |
||||
AND PlayoutItem.Start = PlayoutHistory.`When`) |
||||
WHERE EXISTS (SELECT 1 |
||||
FROM PlayoutItem |
||||
WHERE PlayoutItem.PlayoutId = PlayoutHistory.PlayoutId |
||||
AND PlayoutItem.Start = PlayoutHistory.`When`);");
|
||||
} |
||||
|
||||
/// <inheritdoc />
|
||||
protected override void Down(MigrationBuilder migrationBuilder) |
||||
{ |
||||
} |
||||
} |
||||
} |
||||
Loading…
Reference in new issue