mirror of
https://github.com/Radarr/Radarr
synced 2026-02-05 22:34:08 +01:00
Drop all Commands rows before running migration 204
This commit is contained in:
parent
eecd4e4b7d
commit
346236764c
1 changed files with 3 additions and 0 deletions
|
|
@ -8,6 +8,9 @@ public class ensure_identity_on_id_columns : NzbDroneMigrationBase
|
|||
{
|
||||
protected override void MainDbUpgrade()
|
||||
{
|
||||
//Purge Commands before reworking tables
|
||||
Delete.FromTable("Commands").AllRows();
|
||||
|
||||
Alter.Column("Id").OnTable("Movies").AsInt32().PrimaryKey().Identity();
|
||||
Alter.Column("Id").OnTable("MovieTranslations").AsInt32().PrimaryKey().Identity();
|
||||
Alter.Column("Id").OnTable("Commands").AsInt32().PrimaryKey().Identity();
|
||||
|
|
|
|||
Loading…
Reference in a new issue