You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
627 B
19 lines
627 B
using FluentMigrator;
|
|
using NzbDrone.Core.Datastore.Migration.Framework;
|
|
|
|
namespace NzbDrone.Core.Datastore.Migration
|
|
{
|
|
[Migration(179)]
|
|
public class add_auto_tagging : NzbDroneMigrationBase
|
|
{
|
|
protected override void MainDbUpgrade()
|
|
{
|
|
Create.TableForModel("AutoTagging")
|
|
.WithColumn("Name").AsString().Unique()
|
|
.WithColumn("Specifications").AsString().WithDefaultValue("[]")
|
|
.WithColumn("RemoveTagsAutomatically").AsBoolean().WithDefaultValue(false)
|
|
.WithColumn("Tags").AsString().WithDefaultValue("[]");
|
|
}
|
|
}
|
|
}
|