Re: skipping elidable migrations

2018-11-13 Thread Dan Watson
Hi Adam, All of your suggestions are perfectly valid things to do (and are in fact things I've done in the past). This particular project uses data migrations fairly heavily, and the developers haven't been particularly good about making sure they run cleanly on fresh databases. We are using Dj

Re: skipping elidable migrations

2018-11-10 Thread Adam Johnson
Do you have an example? If you're using Django's default testing framework, it normally creates a fresh database, so from the moment a new data migration is written it would be tested with the empty database scenario. Afaiu it is possible to write RunPython operations in a way that no-ops on empty

skipping elidable migrations

2018-11-09 Thread Dan Watson
Hi All, I was wondering if anyone had any thoughts on an option to the "migrate" command (--skip-elidable?) that would skip running elidable migrations. The use case here is that data migrations that build up over time may act on certain assumptions (existing tables/data) that may not be true w