using Microsoft.EntityFrameworkCore.Migrations; #nullable disable namespace Jellyfin.Server.Implementations.Migrations { /// public partial class EnforceUniqueItemValue : Migration { /// protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.DropIndex( name: "IX_ItemValues_Type_CleanValue", table: "ItemValues"); migrationBuilder.CreateIndex( name: "IX_ItemValues_Type_CleanValue", table: "ItemValues", columns: new[] { "Type", "CleanValue" }, unique: true); } /// protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.DropIndex( name: "IX_ItemValues_Type_CleanValue", table: "ItemValues"); migrationBuilder.CreateIndex( name: "IX_ItemValues_Type_CleanValue", table: "ItemValues", columns: new[] { "Type", "CleanValue" }); } } }