using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace ErsatzTV.Infrastructure.MySql.Migrations
{
///
public partial class Update_ImageFolderDuration : Migration
{
///
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AlterColumn(
name: "DurationSeconds",
table: "ImageMetadata",
type: "double",
nullable: true,
oldClrType: typeof(int),
oldType: "int",
oldNullable: true);
migrationBuilder.AlterColumn(
name: "DurationSeconds",
table: "ImageFolderDuration",
type: "double",
nullable: false,
oldClrType: typeof(int),
oldType: "int");
}
///
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.AlterColumn(
name: "DurationSeconds",
table: "ImageMetadata",
type: "int",
nullable: true,
oldClrType: typeof(double),
oldType: "double",
oldNullable: true);
migrationBuilder.AlterColumn(
name: "DurationSeconds",
table: "ImageFolderDuration",
type: "int",
nullable: false,
oldClrType: typeof(double),
oldType: "double");
}
}
}