Management command sqlall should support unmanaged models
|Reported by:||jarshwah||Owned by:||nobody|
|Component:||Core (Management commands)||Version:||master|
|Cc:||loic84, Tim Graham||Triage Stage:||Accepted|
|Has patch:||no||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
Unmanaged models are generally used with legacy database tables, but creating those models in a development environment is also a manual process. It'd be great if django was able to produce the sql for managed models if explicitly asked for.
loic84, akaariai and I discussed this in IRC and came up with:
./manage sqlall applabel --include-unmanaged
The include unmanaged would print the sql necessary to create the unmanaged models (along with the sql for the other models in that app).
Change History (5)
comment:2 Changed 3 years ago by
|Status:||new → closed|