using Microsoft.EntityFrameworkCore.Migrations; #nullable disable namespace Jellyfin.Server.Implementations.Migrations { /// public partial class ExtendPeopleMapKey : Migration { /// protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.DropPrimaryKey( name: "PK_PeopleBaseItemMap", table: "PeopleBaseItemMap"); migrationBuilder.AlterColumn( name: "Role", table: "PeopleBaseItemMap", type: "TEXT", nullable: false, defaultValue: string.Empty, oldClrType: typeof(string), oldType: "TEXT", oldNullable: true); migrationBuilder.AddPrimaryKey( name: "PK_PeopleBaseItemMap", table: "PeopleBaseItemMap", columns: new[] { "ItemId", "PeopleId", "Role" }); } /// protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.DropPrimaryKey( name: "PK_PeopleBaseItemMap", table: "PeopleBaseItemMap"); migrationBuilder.AlterColumn( name: "Role", table: "PeopleBaseItemMap", type: "TEXT", nullable: true, oldClrType: typeof(string), oldType: "TEXT"); migrationBuilder.AddPrimaryKey( name: "PK_PeopleBaseItemMap", table: "PeopleBaseItemMap", columns: new[] { "ItemId", "PeopleId" }); } } }