add mysql database provider (#1375)
* refactor sqlite into separate library * support mysql * fixes * sql fixes * cleanup * update changelog
This commit is contained in:
+44
@@ -0,0 +1,44 @@
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
namespace ErsatzTV.Infrastructure.Sqlite.Migrations
|
||||
{
|
||||
public partial class Add_ProgramScheduleItem_CustomTitle : Migration
|
||||
{
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.AddColumn<string>(
|
||||
"CustomTitle",
|
||||
"ProgramScheduleItem",
|
||||
"TEXT",
|
||||
nullable: true);
|
||||
|
||||
migrationBuilder.AddColumn<bool>(
|
||||
"CustomGroup",
|
||||
"PlayoutItem",
|
||||
"INTEGER",
|
||||
nullable: false,
|
||||
defaultValue: false);
|
||||
|
||||
migrationBuilder.AddColumn<string>(
|
||||
"CustomTitle",
|
||||
"PlayoutItem",
|
||||
"TEXT",
|
||||
nullable: true);
|
||||
}
|
||||
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropColumn(
|
||||
"CustomTitle",
|
||||
"ProgramScheduleItem");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
"CustomGroup",
|
||||
"PlayoutItem");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
"CustomTitle",
|
||||
"PlayoutItem");
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user