Skip to content

Commit

Permalink
Set organization UUID in initial migration
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
KlaasH committed Dec 20, 2024
1 parent f742d9e commit 8430387
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/setup
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions src/django/users/migrations/0001_initial.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 8430387

Please sign in to comment.