|
|
|
@ -0,0 +1,21 @@
|
|
|
|
|
using FluentMigrator;
|
|
|
|
|
using NzbDrone.Core.Datastore.Migration.Framework;
|
|
|
|
|
|
|
|
|
|
namespace NzbDrone.Core.Datastore.Migration
|
|
|
|
|
{
|
|
|
|
|
[Migration(123)]
|
|
|
|
|
public class create_netimport_table : NzbDroneMigrationBase
|
|
|
|
|
{
|
|
|
|
|
protected override void MainDbUpgrade()
|
|
|
|
|
{
|
|
|
|
|
if (!this.Schema.Schema("dbo").Table("NetImport").Exists())
|
|
|
|
|
{
|
|
|
|
|
Create.TableForModel("NetImport")
|
|
|
|
|
.WithColumn("Enabled").AsBoolean()
|
|
|
|
|
.WithColumn("Name").AsString().Unique()
|
|
|
|
|
.WithColumn("Implementation").AsString()
|
|
|
|
|
.WithColumn("Settings").AsString().Nullable();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|