mirror of https://github.com/ErsatzTV/ErsatzTV.git
8 changed files with 13633 additions and 1 deletions
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,21 @@ |
|||||||
|
using Microsoft.EntityFrameworkCore.Migrations; |
||||||
|
|
||||||
|
#nullable disable |
||||||
|
|
||||||
|
namespace ErsatzTV.Infrastructure.MySql.Migrations |
||||||
|
{ |
||||||
|
/// <inheritdoc />
|
||||||
|
public partial class Reset_InterlacedRatioAgain : Migration |
||||||
|
{ |
||||||
|
/// <inheritdoc />
|
||||||
|
protected override void Up(MigrationBuilder migrationBuilder) |
||||||
|
{ |
||||||
|
migrationBuilder.Sql("UPDATE MediaVersion SET InterlacedRatio = null;"); |
||||||
|
} |
||||||
|
|
||||||
|
/// <inheritdoc />
|
||||||
|
protected override void Down(MigrationBuilder migrationBuilder) |
||||||
|
{ |
||||||
|
} |
||||||
|
} |
||||||
|
} |
||||||
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,21 @@ |
|||||||
|
using Microsoft.EntityFrameworkCore.Migrations; |
||||||
|
|
||||||
|
#nullable disable |
||||||
|
|
||||||
|
namespace ErsatzTV.Infrastructure.Sqlite.Migrations |
||||||
|
{ |
||||||
|
/// <inheritdoc />
|
||||||
|
public partial class Reset_InterlacedRatioAgain : Migration |
||||||
|
{ |
||||||
|
/// <inheritdoc />
|
||||||
|
protected override void Up(MigrationBuilder migrationBuilder) |
||||||
|
{ |
||||||
|
migrationBuilder.Sql("UPDATE MediaVersion SET InterlacedRatio = null;"); |
||||||
|
} |
||||||
|
|
||||||
|
/// <inheritdoc />
|
||||||
|
protected override void Down(MigrationBuilder migrationBuilder) |
||||||
|
{ |
||||||
|
} |
||||||
|
} |
||||||
|
} |
||||||
@ -0,0 +1,21 @@ |
|||||||
|
#! /usr/bin/env bash |
||||||
|
|
||||||
|
if [[ $# -eq 0 ]] ; then |
||||||
|
echo 'Please specify a unique migration name' |
||||||
|
exit 1 |
||||||
|
fi |
||||||
|
|
||||||
|
ROOT="$(git rev-parse --show-toplevel)" |
||||||
|
|
||||||
|
cd "$ROOT/ErsatzTV.Infrastructure" || exit |
||||||
|
|
||||||
|
dotnet ef migrations add $1 \ |
||||||
|
--context TvContext \ |
||||||
|
--startup-project "$ROOT/ErsatzTV" \ |
||||||
|
--project "$ROOT/ErsatzTV.Infrastructure.Sqlite" \ |
||||||
|
-- --provider Sqlite && \ |
||||||
|
dotnet ef migrations add $1 \ |
||||||
|
--context TvContext \ |
||||||
|
--startup-project "$ROOT/ErsatzTV" \ |
||||||
|
--project "$ROOT/ErsatzTV.Infrastructure.MySql" \ |
||||||
|
-- --provider MySql |
||||||
Loading…
Reference in new issue