That script would be bad if you'd run any of those migrations against your development db (yes it should be "throwaway" or rebuildable but...)
Personally, I'm strongly in favour of Shai's suggestion and also in favour of --update, mainly as I like being able to capture (most) migrations has logical bits of work as it aids code review. My pull requests don't include every iteration of the code I wrote to get the final version, so why should my migrations? M On 28 March 2014 10:13, Bernie Sumption <[email protected]> wrote: > OK, it turns out that the "safe update migrations script" too simple to > even qualify as a "script": > > git clean myapp/migrations -f && python manage.py makemigrations > > Perhaps the solution is to document this on the testing page as a solution > to the "accumulation of many small migrations during development" problem? > > Bernie :o) > > -- > You received this message because you are subscribed to the Google Groups > "Django developers" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > Visit this group at http://groups.google.com/group/django-developers. > To view this discussion on the web visit > https://groups.google.com/d/msgid/django-developers/e15603d7-ed14-4d18-b36b-925aaf824bce%40googlegroups.com<https://groups.google.com/d/msgid/django-developers/e15603d7-ed14-4d18-b36b-925aaf824bce%40googlegroups.com?utm_medium=email&utm_source=footer> > . > > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "Django developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/django-developers. To view this discussion on the web visit https://groups.google.com/d/msgid/django-developers/CAMwjO1GHc4KtnmEs%3DuWQV8YP0OzRQ61YFo2ZFuJurrE%3DsVsghw%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
