mirror of https://github.com/Radarr/Radarr
fixup! New: Multiple Quality Profiles and Files Per Movie
This commit is contained in:
parent
9e7ad678b0
commit
85544ca8f6
|
@ -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");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue