16 lines
520 B
C#
16 lines
520 B
C#
using System.Data;
|
|
using Migrator.Framework;
|
|
|
|
namespace NzbDrone.Core.Datastore.Migrations
|
|
{
|
|
[Migration(20120127)]
|
|
public class Migration20120127 : NzbDroneMigration
|
|
{
|
|
protected override void MainDbUpgrade()
|
|
{
|
|
Database.AddColumn("History", "NewzbinId", DbType.Int32, ColumnProperty.Null);
|
|
Database.AddColumn("History", "Blacklisted", DbType.Boolean, ColumnProperty.Null);
|
|
Database.ExecuteNonQuery("UPDATE History SET Blacklisted = 0");
|
|
}
|
|
}
|
|
} |