Fixes #15787: Convert User ID column to 64-bit integer
This commit is contained in:
parent
f42d0336c2
commit
781409b5ae
|
@ -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