#29026: Make makemigrations scriptable / script-friendly -------------------------------------+------------------------------------- Reporter: Chris | Owner: nobody Jerdonek | Type: | Status: new Cleanup/optimization | Component: | Version: master Migrations | Keywords: Severity: Normal | makemigrations,scripting,stderr,stdout Triage Stage: | Has patch: 0 Unreviewed | Needs documentation: 0 | Needs tests: 0 Patch needs improvement: 0 | Easy pickings: 0 UI/UX: 0 | -------------------------------------+------------------------------------- Currently, the `makemigrations` management command doesn't lend itself well to scripting. For example, it writes its progress output to `stdout` rather than `stderr`. Also, there doesn't appear to be a structured / programmatic way to figure out what files it has created.
My use case is that in my development environment, I'd like to be able to run `makemigrations` in a Docker container, find out what files were added (e.g. from `makemigrations`'s output), and then copy those files from the Docker container to my development machine so they can be added to source control. Currently, there doesn't seem to be an easy way to do this. One way, for example, is to manually read `makemigrations`'s output to find out what apps were affected, and then inspect the directories yourself for the new files. Better, for example, would be if `makemigrations` could write the paths to the created files to `stdout`. -- Ticket URL: <https://code.djangoproject.com/ticket/29026> Django <https://code.djangoproject.com/> The Web framework for perfectionists with deadlines. -- You received this message because you are subscribed to the Google Groups "Django updates" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-updates+unsubscr...@googlegroups.com. To post to this group, send email to django-updates@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-updates/052.854774bf5383e3c1dd0a7d27292f61f2%40djangoproject.com. For more options, visit https://groups.google.com/d/optout.