klichukb / django-migrate-sql

Django Migrations for raw SQL
ISC License
12 stars 10 forks source link

Create logic that works around circular dependencies #6

Closed klichukb closed 8 years ago

klichukb commented 8 years ago

An SQL item may be actually using itself - directly or indirectly, for example if its recursion in SQL function. This is TODO.

klichukb commented 8 years ago

Makemigrations now has this implemented. Migrate still does not build state so will not detect problems.

klichukb commented 8 years ago

Decision has been made that dependencies should only be set when entities depend on database level. Say, function calls in Postgre are not making one function depend on other. However nested composite types do.