|
|
|
@ -1,6 +1,4 @@
|
|
|
|
|
using FluentMigrator;
|
|
|
|
|
|
|
|
|
|
// using FluentMigrator.Expressions;
|
|
|
|
|
using NzbDrone.Core.Datastore.Migration.Framework;
|
|
|
|
|
using NzbDrone.Core.Movies;
|
|
|
|
|
|
|
|
|
@ -11,12 +9,12 @@ namespace NzbDrone.Core.Datastore.Migration
|
|
|
|
|
{
|
|
|
|
|
protected override void MainDbUpgrade()
|
|
|
|
|
{
|
|
|
|
|
if (!Schema.Schema("dbo").Table("NetImport").Column("MinimumAvailability").Exists())
|
|
|
|
|
if (!Schema.Table("NetImport").Column("MinimumAvailability").Exists())
|
|
|
|
|
{
|
|
|
|
|
Alter.Table("NetImport").AddColumn("MinimumAvailability").AsInt32().WithDefaultValue((int)MovieStatusType.Released);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (!Schema.Schema("dbo").Table("Movies").Column("MinimumAvailability").Exists())
|
|
|
|
|
if (!Schema.Table("Movies").Column("MinimumAvailability").Exists())
|
|
|
|
|
{
|
|
|
|
|
Alter.Table("Movies").AddColumn("MinimumAvailability").AsInt32().WithDefaultValue((int)MovieStatusType.Released);
|
|
|
|
|
}
|
|
|
|
|