Added: Tags support to NetImport (Lists) (#3127)
* Add tags support to NetImport (Lists) * Keep indentation consistent with current code * Initialize set of empty tags * Add tags from list to movie * Prevent tags used by lists from being removed
parent
84fab25af7
commit
7a43bf3f60
@ -0,0 +1,17 @@
|
|||||||
|
using FluentMigrator;
|
||||||
|
using NzbDrone.Core.Datastore.Migration.Framework;
|
||||||
|
|
||||||
|
namespace NzbDrone.Core.Datastore.Migration
|
||||||
|
{
|
||||||
|
[Migration(151)]
|
||||||
|
public class add_tags_to_net_import : NzbDroneMigrationBase
|
||||||
|
{
|
||||||
|
protected override void MainDbUpgrade()
|
||||||
|
{
|
||||||
|
Alter.Table("NetImport")
|
||||||
|
.AddColumn("Tags").AsString().Nullable();
|
||||||
|
|
||||||
|
Execute.Sql("UPDATE NetImport SET Tags = '[]'");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in new issue