40 lines
1.0 KiB
C#
40 lines
1.0 KiB
C#
using Microsoft.EntityFrameworkCore.Migrations;
|
|
|
|
#nullable disable
|
|
|
|
namespace ErsatzTV.Infrastructure.MySql.Migrations
|
|
{
|
|
/// <inheritdoc />
|
|
public partial class Add_PlayoutSeed : Migration
|
|
{
|
|
/// <inheritdoc />
|
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.RenameColumn(
|
|
name: "Seed",
|
|
table: "PlayoutHistory",
|
|
newName: "Index");
|
|
|
|
migrationBuilder.AddColumn<int>(
|
|
name: "Seed",
|
|
table: "Playout",
|
|
type: "int",
|
|
nullable: false,
|
|
defaultValue: 0);
|
|
}
|
|
|
|
/// <inheritdoc />
|
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.DropColumn(
|
|
name: "Seed",
|
|
table: "Playout");
|
|
|
|
migrationBuilder.RenameColumn(
|
|
name: "Index",
|
|
table: "PlayoutHistory",
|
|
newName: "Seed");
|
|
}
|
|
}
|
|
}
|