|
|
@ -4,8 +4,8 @@ using NzbDrone.Core.Datastore.Migration.Framework;
|
|
|
|
namespace NzbDrone.Core.Datastore.Migration
|
|
|
|
namespace NzbDrone.Core.Datastore.Migration
|
|
|
|
{
|
|
|
|
{
|
|
|
|
[Tags("")]
|
|
|
|
[Tags("")]
|
|
|
|
[Migration(20130324)]
|
|
|
|
[Migration(1)]
|
|
|
|
public class Migration20130324 : NzbDroneMigrationBase
|
|
|
|
public class InitialSetup : NzbDroneMigrationBase
|
|
|
|
{
|
|
|
|
{
|
|
|
|
protected override void MainDbUpgrade()
|
|
|
|
protected override void MainDbUpgrade()
|
|
|
|
{
|
|
|
|
{
|
|
|
@ -27,8 +27,7 @@ namespace NzbDrone.Core.Datastore.Migration
|
|
|
|
.WithColumn("Overview").AsString().Nullable()
|
|
|
|
.WithColumn("Overview").AsString().Nullable()
|
|
|
|
.WithColumn("AirTime").AsString().Nullable()
|
|
|
|
.WithColumn("AirTime").AsString().Nullable()
|
|
|
|
.WithColumn("Images").AsString()
|
|
|
|
.WithColumn("Images").AsString()
|
|
|
|
.WithColumn("RootFolderId").AsInt32()
|
|
|
|
.WithColumn("Path").AsString()
|
|
|
|
.WithColumn("FolderName").AsString()
|
|
|
|
|
|
|
|
.WithColumn("Monitored").AsBoolean()
|
|
|
|
.WithColumn("Monitored").AsBoolean()
|
|
|
|
.WithColumn("QualityProfileId").AsInt32()
|
|
|
|
.WithColumn("QualityProfileId").AsInt32()
|
|
|
|
.WithColumn("SeasonFolder").AsBoolean()
|
|
|
|
.WithColumn("SeasonFolder").AsBoolean()
|
|
|
@ -83,7 +82,7 @@ namespace NzbDrone.Core.Datastore.Migration
|
|
|
|
.WithColumn("NzbInfoUrl").AsString().Nullable()
|
|
|
|
.WithColumn("NzbInfoUrl").AsString().Nullable()
|
|
|
|
.WithColumn("ReleaseGroup").AsString().Nullable();
|
|
|
|
.WithColumn("ReleaseGroup").AsString().Nullable();
|
|
|
|
|
|
|
|
|
|
|
|
Create.TableForModel("NotificationDefinitions")
|
|
|
|
Create.TableForModel("Notifications")
|
|
|
|
.WithColumn("Name").AsString()
|
|
|
|
.WithColumn("Name").AsString()
|
|
|
|
.WithColumn("OnGrab").AsBoolean()
|
|
|
|
.WithColumn("OnGrab").AsBoolean()
|
|
|
|
.WithColumn("OnDownload").AsBoolean()
|
|
|
|
.WithColumn("OnDownload").AsBoolean()
|
|
|
@ -95,7 +94,7 @@ namespace NzbDrone.Core.Datastore.Migration
|
|
|
|
.WithColumn("Interval").AsInt32()
|
|
|
|
.WithColumn("Interval").AsInt32()
|
|
|
|
.WithColumn("LastExecution").AsDateTime();
|
|
|
|
.WithColumn("LastExecution").AsDateTime();
|
|
|
|
|
|
|
|
|
|
|
|
Create.TableForModel("IndexerDefinitions")
|
|
|
|
Create.TableForModel("Indexers")
|
|
|
|
.WithColumn("Enable").AsBoolean()
|
|
|
|
.WithColumn("Enable").AsBoolean()
|
|
|
|
.WithColumn("Name").AsString().Unique()
|
|
|
|
.WithColumn("Name").AsString().Unique()
|
|
|
|
.WithColumn("Implementation").AsString()
|
|
|
|
.WithColumn("Implementation").AsString()
|