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.
|
|
|
|
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 (!Schema.Table("NetImport").Exists())
|
|
|
|
|
{
|
|
|
|
|
Create.TableForModel("NetImport")
|
|
|
|
|
.WithColumn("Enabled").AsBoolean()
|
|
|
|
|
.WithColumn("Name").AsString().Unique()
|
|
|
|
|
.WithColumn("Implementation").AsString()
|
|
|
|
|
.WithColumn("ConfigContract").AsString().Nullable()
|
|
|
|
|
.WithColumn("Settings").AsString().Nullable()
|
|
|
|
|
.WithColumn("EnableAuto").AsBoolean()
|
|
|
|
|
.WithColumn("RootFolderPath").AsString()
|
|
|
|
|
.WithColumn("ShouldMonitor").AsBoolean()
|
|
|
|
|
.WithColumn("ProfileId").AsInt32();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|