fixup! New: Multiple Quality Profiles and Files Per Movie

This commit is contained in:
Qstick 2023-10-14 20:42:57 -05:00
parent 9e7ad678b0
commit 85544ca8f6
1 changed files with 10 additions and 2 deletions

View File

@ -9,8 +9,16 @@ namespace NzbDrone.Core.Datastore.Migration
protected override void MainDbUpgrade()
{
Rename.Table("Profiles").To("QualityProfiles");
Rename.Column("ProfileId").OnTable("Movies").To("QualityProfileId");
Rename.Column("ProfileId").OnTable("ImportLists").To("QualityProfileId");
if (Schema.Table("Movies").Column("ProfileId").Exists())
{
Rename.Column("ProfileId").OnTable("Movies").To("QualityProfileId");
}
if (Schema.Table("ImportLists").Column("ProfileId").Exists())
{
Rename.Column("ProfileId").OnTable("ImportLists").To("QualityProfileId");
}
}
}
}