Renamed SeasonPackSpecification to ReleaseTypeSpecification

This commit is contained in:
Mark McDowall 2024-03-02 21:19:44 -08:00 committed by GitHub
parent 64c6a8879b
commit 71c2c0570b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 16 additions and 2 deletions

View File

@ -6,7 +6,7 @@ using NzbDrone.Core.Validation;
namespace NzbDrone.Core.CustomFormats
{
public class SeasonPackSpecificationValidator : AbstractValidator<SeasonPackSpecification>
public class SeasonPackSpecificationValidator : AbstractValidator<ReleaseTypeSpecification>
{
public SeasonPackSpecificationValidator()
{
@ -20,7 +20,7 @@ namespace NzbDrone.Core.CustomFormats
}
}
public class SeasonPackSpecification : CustomFormatSpecificationBase
public class ReleaseTypeSpecification : CustomFormatSpecificationBase
{
private static readonly SeasonPackSpecificationValidator Validator = new ();

View File

@ -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')");
}
}
}