mirror of https://github.com/Sonarr/Sonarr
19 lines
580 B
C#
19 lines
580 B
C#
![]() |
using FluentMigrator;
|
|||
|
using NzbDrone.Core.Datastore.Migration.Framework;
|
|||
|
|
|||
|
namespace NzbDrone.Core.Datastore.Migration
|
|||
|
{
|
|||
|
[Tags("")]
|
|||
|
[Migration(9)]
|
|||
|
public class fix_rename_episodes : NzbDroneMigrationBase
|
|||
|
{
|
|||
|
protected override void MainDbUpgrade()
|
|||
|
{
|
|||
|
SQLiteAlter.DropColumns("NamingConfig", new[] { "SeasonFolderFormat" });
|
|||
|
|
|||
|
Execute.Sql("UPDATE NamingConfig SET RenameEpisodes = 1 WHERE RenameEpisodes = -1");
|
|||
|
Execute.Sql("UPDATE NamingConfig SET RenameEpisodes = 0 WHERE RenameEpisodes = -2");
|
|||
|
}
|
|||
|
}
|
|||
|
}
|