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.
23 lines
817 B
23 lines
817 B
using FluentMigrator;
|
|
using NzbDrone.Core.Datastore.Migration.Framework;
|
|
|
|
namespace NzbDrone.Core.Datastore.Migration
|
|
{
|
|
[Migration(83)]
|
|
public class additonal_blacklist_columns : NzbDroneMigrationBase
|
|
{
|
|
protected override void MainDbUpgrade()
|
|
{
|
|
Alter.Table("Blacklist").AddColumn("Size").AsInt64().Nullable();
|
|
Alter.Table("Blacklist").AddColumn("Protocol").AsInt32().Nullable();
|
|
Alter.Table("Blacklist").AddColumn("Indexer").AsString().Nullable();
|
|
Alter.Table("Blacklist").AddColumn("Message").AsString().Nullable();
|
|
Alter.Table("Blacklist").AddColumn("TorrentInfoHash").AsString().Nullable();
|
|
|
|
Update.Table("Blacklist")
|
|
.Set(new { Protocol = 1 })
|
|
.AllRows();
|
|
}
|
|
}
|
|
}
|