Files
ersatztv/ErsatzTV.Infrastructure.Sqlite/Migrations/20211021031825_Add_PlayoutItemInPointOutPoint.cs
T
Jason DoveandGitHub a7661c8498 add mysql database provider (#1375)
* refactor sqlite into separate library

* support mysql

* fixes

* sql fixes

* cleanup

* update changelog
2023-08-12 21:44:14 -05:00

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");
}
}
}