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.
26 lines
865 B
26 lines
865 B
using FluentMigrator;
|
|
|
|
// using FluentMigrator.Expressions;
|
|
using NzbDrone.Core.Datastore.Migration.Framework;
|
|
using NzbDrone.Core.Movies;
|
|
|
|
namespace NzbDrone.Core.Datastore.Migration
|
|
{
|
|
[Migration(133)]
|
|
public class add_minimumavailability : NzbDroneMigrationBase
|
|
{
|
|
protected override void MainDbUpgrade()
|
|
{
|
|
if (!Schema.Schema("dbo").Table("NetImport").Column("MinimumAvailability").Exists())
|
|
{
|
|
Alter.Table("NetImport").AddColumn("MinimumAvailability").AsInt32().WithDefaultValue((int)MovieStatusType.Released);
|
|
}
|
|
|
|
if (!Schema.Schema("dbo").Table("Movies").Column("MinimumAvailability").Exists())
|
|
{
|
|
Alter.Table("Movies").AddColumn("MinimumAvailability").AsInt32().WithDefaultValue((int)MovieStatusType.Released);
|
|
}
|
|
}
|
|
}
|
|
}
|