You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
724 B
25 lines
724 B
using FluentMigrator;
|
|
using NzbDrone.Core.Datastore.Migration.Framework;
|
|
|
|
namespace NzbDrone.Core.Datastore.Migration
|
|
{
|
|
[Migration(230)]
|
|
public class rename_quality_profiles : NzbDroneMigrationBase
|
|
{
|
|
protected override void MainDbUpgrade()
|
|
{
|
|
Rename.Table("Profiles").To("QualityProfiles");
|
|
|
|
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");
|
|
}
|
|
}
|
|
}
|
|
}
|