* refactor sqlite into separate library * support mysql * fixes * sql fixes * cleanup * update changelog
37 lines
1.1 KiB
C#
37 lines
1.1 KiB
C#
using System;
|
|
using Microsoft.EntityFrameworkCore.Migrations;
|
|
|
|
namespace ErsatzTV.Infrastructure.Sqlite.Migrations
|
|
{
|
|
public partial class Add_PlayoutItemInPointOutPoint : Migration
|
|
{
|
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.AddColumn<TimeSpan>(
|
|
name: "InPoint",
|
|
table: "PlayoutItem",
|
|
type: "TEXT",
|
|
nullable: false,
|
|
defaultValue: new TimeSpan(0, 0, 0, 0, 0));
|
|
|
|
migrationBuilder.AddColumn<TimeSpan>(
|
|
name: "OutPoint",
|
|
table: "PlayoutItem",
|
|
type: "TEXT",
|
|
nullable: false,
|
|
defaultValue: new TimeSpan(0, 0, 0, 0, 0));
|
|
}
|
|
|
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.DropColumn(
|
|
name: "InPoint",
|
|
table: "PlayoutItem");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "OutPoint",
|
|
table: "PlayoutItem");
|
|
}
|
|
}
|
|
}
|