mirror of
https://github.com/Radarr/Radarr
synced 2025-02-23 14:51:17 +00:00
fixup! New: Multiple Quality Profiles and Files Per Movie
This commit is contained in:
parent
9e7ad678b0
commit
85544ca8f6
1 changed files with 10 additions and 2 deletions
|
@ -9,8 +9,16 @@ public class rename_quality_profiles : NzbDroneMigrationBase
|
||||||
protected override void MainDbUpgrade()
|
protected override void MainDbUpgrade()
|
||||||
{
|
{
|
||||||
Rename.Table("Profiles").To("QualityProfiles");
|
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");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue