a guest Jun 21st, 2018 49 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
- Simple django management command to automate the process of renaming an existing table, recreating via syncdb, and inserting the old data into the new table. Currently does not handle field renames - will eat your data if you try.
- To install, save this file into an installed django app's management/commands/ directory, eg
- Run the command from the command line as follows
- python manage.py simplemigration APPNAME.MODELNAME
RAW Paste Data