Manage.py alterdb command

1
2
3
4
5
6
7
# add django_snippets to INSTALLED_APPS

# usage example
# ./manage.py altersql myapp
# ./manage.py alterdb
# ./manage.py alterdb --app=myapp
# ./manage.py alterdb --showsql

More like this

  1. Creating MySQL Alter table commands for Foreign Keys by vidyanand 4 years, 11 months ago
  2. Simple solution for model schema evolution / database changelog by kahless 5 years, 11 months ago
  3. dumpdata/loaddata with MySQL and ForeignKeys, as django command by brondsem 4 years, 1 month ago
  4. Allow filtering and ordering by counts of related query results by exogen 6 years, 1 month ago
  5. Management command decorator by eternicode 2 years, 8 months ago

Comments

ckarrie2 (on July 18, 2012):

So where is this django_snippets module?

#

jezdez (on July 19, 2012):

It's linked in the description. That said, this is a pretty weak snippet.

#

(Forgotten your password?)