Prevent deletion of chowngroup we may need it later

This commit is contained in:
Taloth Saldono 2020-06-10 17:40:26 +02:00
parent 2eb1a64d82
commit 200e263f1f
1 changed files with 3 additions and 2 deletions

View File

@ -5,11 +5,12 @@ using NzbDrone.Core.Datastore.Migration.Framework;
namespace NzbDrone.Core.Datastore.Migration
{
[Migration(140)]
public class remove_chown_and_folderchmod_config : NzbDroneMigrationBase
public class remove_chown_and_folderchmod_config_v2 : NzbDroneMigrationBase
{
protected override void MainDbUpgrade()
{
Execute.Sql("DELETE FROM config WHERE Key IN ('folderchmod', 'chownuser', 'chowngroup')");
Execute.Sql("DELETE FROM config WHERE Key IN ('folderchmod', 'chownuser')");
// Note: v1 version of migration removed 'chowngroup'
}
}
}