Re: Content types shouldn't be created on post_migrate signal

2018-10-07 Thread Arthur Rio
Hey Marcin, I hope you had a good week-end. After looking through the codebase to get more familiar with how `pre_migrate` and `post_migrate` are currently used, I thought we could simply have the same sort of signal for `post_makemigrations`, where a third party could get a list of the

Requiring sqlparse for sqlite introspection

2018-10-07 Thread Ian Foote
Hi all, On my pull request (https://github.com/django/django/pull/10406) refactoring how Django creates database constraints I introduced a dependency on sqlparse in the sqlite introspection code. This allows Django to correctly read information about constraints on sqlite, particularly the name.

Re: django migrations on live database for large tables for postgresql

2018-10-07 Thread pavel . tyslacki
Hello, Aymeric Thanks for your reply. CREATE INDEX CONCURRENTLY is a big part for zero downtime migrations support, but there are too many additional questions as should ALTER TABLE ADD COLUMN UNIQUE splitted to CREATE INDEX and constraint creation or should be handled FOREGN KEY, CHECK and

Re: django migrations on live database for large tables for postgresql

2018-10-07 Thread Aymeric Augustin
Hello Pavel, There's an accepted ticket about CREATE INDEX CONCURRENTLY: https://code.djangoproject.com/ticket/21039. A concrete proposal for adding this feature to Django would be interesting. I'm not really sure about your two other suggestions. If you think they're improving the PostgreSQL