From 4a310b0c314de4499425fbb5584f94a1f77c640c Mon Sep 17 00:00:00 2001 From: Matthew Elwell Date: Wed, 13 Nov 2024 08:53:20 +0000 Subject: [PATCH] fix: prevent lock when adding FFAdmin.uuid column (#4832) --- api/users/migrations/0037_add_uuid_field_to_user_model.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/users/migrations/0037_add_uuid_field_to_user_model.py b/api/users/migrations/0037_add_uuid_field_to_user_model.py index f5eb30f549e8..1f51fd867439 100644 --- a/api/users/migrations/0037_add_uuid_field_to_user_model.py +++ b/api/users/migrations/0037_add_uuid_field_to_user_model.py @@ -26,7 +26,7 @@ class Migration(migrations.Migration): migrations.AddField( model_name='ffadminuser', name='uuid', - field=models.UUIDField(default=uuid.uuid4), + field=models.UUIDField(default=None, null=True), ), migrations.RunPython(set_default_uuids, reverse_code=migrations.RunPython.noop), migrations.AlterField(