Skip to content

Commit

Permalink
16625 don't alter SQL table if sequence already exists
Browse files Browse the repository at this point in the history
  • Loading branch information
arthanson committed Jul 12, 2024
1 parent 4fa3967 commit a4f25a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion netbox/extras/migrations/0111_rename_content_types.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ class Migration(migrations.Migration):
),
# Pre-v2.10 sequence name (see #15605)
migrations.RunSQL(
"ALTER TABLE IF EXISTS extras_customfield_obj_type_id_seq RENAME TO extras_customfield_object_types_id_seq"
"ALTER TABLE IF NOT EXISTS extras_customfield_object_types_id_seq AND EXISTS extras_customfield_obj_type_id_seq RENAME TO extras_customfield_object_types_id_seq"
),

# Custom links
Expand Down

0 comments on commit a4f25a4

Please sign in to comment.