Renamed SeasonPackSpecification to ReleaseTypeSpecification
This commit is contained in:
parent
64c6a8879b
commit
71c2c0570b
|
@ -6,7 +6,7 @@ using NzbDrone.Core.Validation;
|
||||||
|
|
||||||
namespace NzbDrone.Core.CustomFormats
|
namespace NzbDrone.Core.CustomFormats
|
||||||
{
|
{
|
||||||
public class SeasonPackSpecificationValidator : AbstractValidator<SeasonPackSpecification>
|
public class SeasonPackSpecificationValidator : AbstractValidator<ReleaseTypeSpecification>
|
||||||
{
|
{
|
||||||
public SeasonPackSpecificationValidator()
|
public SeasonPackSpecificationValidator()
|
||||||
{
|
{
|
||||||
|
@ -20,7 +20,7 @@ namespace NzbDrone.Core.CustomFormats
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public class SeasonPackSpecification : CustomFormatSpecificationBase
|
public class ReleaseTypeSpecification : CustomFormatSpecificationBase
|
||||||
{
|
{
|
||||||
private static readonly SeasonPackSpecificationValidator Validator = new ();
|
private static readonly SeasonPackSpecificationValidator Validator = new ();
|
||||||
|
|
|
@ -0,0 +1,14 @@
|
||||||
|
using FluentMigrator;
|
||||||
|
using NzbDrone.Core.Datastore.Migration.Framework;
|
||||||
|
|
||||||
|
namespace NzbDrone.Core.Datastore.Migration
|
||||||
|
{
|
||||||
|
[Migration(205)]
|
||||||
|
public class rename_season_pack_spec : NzbDroneMigrationBase
|
||||||
|
{
|
||||||
|
protected override void MainDbUpgrade()
|
||||||
|
{
|
||||||
|
Execute.Sql("UPDATE \"CustomFormats\" SET \"Specifications\" = REPLACE(\"Specifications\", 'SeasonPackSpecification', 'ReleaseTypeSpecification')");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue