Changes between Version 1 and Version 2 of Ticket #30431
- Timestamp:
- May 2, 2019, 6:33:58 AM (6 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #30431
- Property Summary Migration hangs when using UUIDField with unique default value & multiple databases → Migration hangs on non default database
-
Ticket #30431 – Description
v1 v2 3 3 This works with a single database but hangs in the following scenarios with multiple databases : 4 4 5 - Hangs ! Migration with option `--database=foobar`6 - Hangs ! Migration without option `--database=foobar`, but with `using('foobar')` in the query in gen_uuid function 7 - Works ! Migration without option `--database=foobar` 5 - Hangs 6 - python manage.py migrate --database=nondefault 7 - also hangs with `.using('nondefault')` in the query in gen_uuid function 8 8 9 - Works 10 - python manage.py migrate 11 - python manage.py migrate --database=default 12 13 It seems to always hang at this statement `UserModel.objects.all()` when a non-default database is used either via `--database` option in migrate or via `.using('nondefault')` in query. 9 14 10 15 Here's a snippet of the code I've used. I would be glad to provide additional information to reproduce the issue.