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.
30 lines
854 B
30 lines
854 B
using FluentMigrator;
|
|
using NzbDrone.Core.Datastore.Migration.Framework;
|
|
|
|
namespace NzbDrone.Core.Datastore.Migration
|
|
{
|
|
[Tags("")]
|
|
[Migration(20130522)]
|
|
public class Migration20130522 : NzbDroneMigrationBase
|
|
{
|
|
protected override void MainDbUpgrade()
|
|
{
|
|
Execute.Sql("DROP TABLE IF EXISTS NotificationDefinitions");
|
|
|
|
Rename.Table("IndexerDefinitions")
|
|
.To("Indexers");
|
|
|
|
Create.TableForModel("Notifications")
|
|
.WithColumn("Name").AsString()
|
|
.WithColumn("OnGrab").AsBoolean()
|
|
.WithColumn("OnDownload").AsBoolean()
|
|
.WithColumn("Settings").AsString()
|
|
.WithColumn("Implementation").AsString();
|
|
}
|
|
|
|
protected override void LogDbUpgrade()
|
|
{
|
|
}
|
|
}
|
|
}
|