using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace Jellyfin.Server.Implementations.Migrations
{
///
public partial class AddInheritedParentalRatingSubValue : Migration
{
///
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.RenameColumn(
name: "MaxParentalAgeRating",
table: "Users",
newName: "MaxParentalRatingScore");
migrationBuilder.AddColumn(
name: "MaxParentalRatingSubScore",
table: "Users",
type: "INTEGER",
nullable: true);
migrationBuilder.AddColumn(
name: "InheritedParentalRatingSubValue",
table: "BaseItems",
type: "INTEGER",
nullable: true);
}
///
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "MaxParentalRatingSubScore",
table: "Users");
migrationBuilder.DropColumn(
name: "InheritedParentalRatingValue",
table: "BaseItems");
migrationBuilder.RenameColumn(
name: "MaxParentalRatingScore",
table: "Users",
newName: "MaxParentalAgeRating");
}
}
}