mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-14 18:57:39 -07:00
New migration to fix moving from UseSceneName to RenameEpsiodes
This commit is contained in:
parent
a216e37d6a
commit
c719b17ac0
3 changed files with 20 additions and 4 deletions
18
NzbDrone.Core/Datastore/Migration/009_fix_renameEpisodes.cs
Normal file
18
NzbDrone.Core/Datastore/Migration/009_fix_renameEpisodes.cs
Normal file
|
@ -0,0 +1,18 @@
|
|||
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");
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue