From 32fa005958817a3a7896d1c3f9b9c8ac3f3ef985 Mon Sep 17 00:00:00 2001 From: Klaas Hoekema Date: Tue, 10 Dec 2024 09:45:19 -0500 Subject: [PATCH] Set organization UUID in initial migration We already hard-coded a user UUID in this migration, possibly to facilitate moving fixtures between development environments. This sets the organization UUID to a fixed value as well, to facilitate transferring neighborhoods in a fixture. --- scripts/setup | 2 +- src/django/users/migrations/0001_initial.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/setup b/scripts/setup index 8743038b..6562df30 100755 --- a/scripts/setup +++ b/scripts/setup @@ -30,7 +30,7 @@ then vagrant up --provision - vagrant ssh -c "cd /vagrant && ./scripts/update" + vagrant ssh -c "cd /vagrant && ./scripts/update --load-data" popd fi diff --git a/src/django/users/migrations/0001_initial.py b/src/django/users/migrations/0001_initial.py index 3e395e24..cb88631e 100644 --- a/src/django/users/migrations/0001_initial.py +++ b/src/django/users/migrations/0001_initial.py @@ -47,6 +47,7 @@ def add_root_org(apps, schema_editor): root_org = Organization.objects.create(created_by=root_user, modified_by=root_user, name='root', + uuid='7adf4108-f9e4-4f1f-ae9c-4fccf55d9796', org_type='ADMIN', label='Default administrative organization') root_org.save()