mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-27 10:58:37 -06:00
Fixes #15787: Convert User ID column to 64-bit integer
This commit is contained in:
parent
e40ab69ba6
commit
fb4666c2ab
@ -33,6 +33,9 @@ class Migration(migrations.Migration):
|
||||
table=None,
|
||||
),
|
||||
|
||||
# Convert the `id` column to a 64-bit integer (BigAutoField is implied by DEFAULT_AUTO_FIELD)
|
||||
migrations.RunSQL("ALTER TABLE users_user ALTER COLUMN id TYPE bigint"),
|
||||
|
||||
# Rename auth_user_* sequences
|
||||
migrations.RunSQL("ALTER TABLE auth_user_groups_id_seq RENAME TO users_user_groups_id_seq"),
|
||||
migrations.RunSQL("ALTER TABLE auth_user_id_seq RENAME TO users_user_id_seq"),
|
||||
|
Loading…
Reference in New Issue
Block a user