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.
25 lines
1.2 KiB
25 lines
1.2 KiB
3 years ago
|
using FluentMigrator;
|
||
|
using NzbDrone.Core.Datastore.Migration.Framework;
|
||
|
|
||
|
namespace NzbDrone.Core.Datastore.Migration
|
||
|
{
|
||
|
[Migration(204)]
|
||
|
public class ensure_identity_on_id_columns : NzbDroneMigrationBase
|
||
|
{
|
||
|
protected override void MainDbUpgrade()
|
||
|
{
|
||
|
Alter.Column("Id").OnTable("Movies").AsInt32().PrimaryKey().Identity();
|
||
|
Alter.Column("Id").OnTable("MovieTranslations").AsInt32().PrimaryKey().Identity();
|
||
|
Alter.Column("Id").OnTable("Commands").AsInt32().PrimaryKey().Identity();
|
||
|
Alter.Column("Id").OnTable("Credits").AsInt32().PrimaryKey().Identity();
|
||
|
Alter.Column("Id").OnTable("Profiles").AsInt32().PrimaryKey().Identity();
|
||
|
Alter.Column("Id").OnTable("PendingReleases").AsInt32().PrimaryKey().Identity();
|
||
|
Alter.Column("Id").OnTable("NamingConfig").AsInt32().PrimaryKey().Identity();
|
||
|
Alter.Column("Id").OnTable("History").AsInt32().PrimaryKey().Identity();
|
||
|
Alter.Column("Id").OnTable("Blocklist").AsInt32().PrimaryKey().Identity();
|
||
|
Alter.Column("Id").OnTable("MovieFiles").AsInt32().PrimaryKey().Identity();
|
||
|
Alter.Column("Id").OnTable("CustomFormats").AsInt32().PrimaryKey().Identity();
|
||
|
}
|
||
|
}
|
||
|
}
|