Fixed: Rare timing issue on first-use causing duplicate naming config (#2790)
Fixes #2773pull/2/head
parent
0d5c71d205
commit
009abaf9be
@ -0,0 +1,15 @@
|
||||
using FluentMigrator;
|
||||
using NzbDrone.Core.Datastore.Migration.Framework;
|
||||
|
||||
namespace NzbDrone.Core.Datastore.Migration
|
||||
{
|
||||
[Migration(148)]
|
||||
public class remove_extra_naming_config : NzbDroneMigrationBase
|
||||
{
|
||||
protected override void MainDbUpgrade()
|
||||
{
|
||||
// Remove all but 1 NamingConfig
|
||||
Execute.Sql("DELETE FROM NamingConfig WHERE ID NOT IN(SELECT ID FROM NamingConfig LIMIT 1)");
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in new issue