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.
25 lines
723 B
25 lines
723 B
using FluentMigrator;
|
|
using NzbDrone.Core.Datastore.Migration.Framework;
|
|
|
|
namespace NzbDrone.Core.Datastore.Migration
|
|
{
|
|
[Migration(66)]
|
|
public class add_tags : NzbDroneMigrationBase
|
|
{
|
|
protected override void MainDbUpgrade()
|
|
{
|
|
Create.TableForModel("Tags")
|
|
.WithColumn("Label").AsString().NotNullable();
|
|
|
|
Alter.Table("Series")
|
|
.AddColumn("Tags").AsString().Nullable();
|
|
|
|
Alter.Table("Notifications")
|
|
.AddColumn("Tags").AsString().Nullable();
|
|
|
|
Update.Table("Series").Set(new { Tags = "[]" }).AllRows();
|
|
Update.Table("Notifications").Set(new { Tags = "[]" }).AllRows();
|
|
}
|
|
}
|
|
}
|