daily pastebin goal
67%
SHARE
TWEET

Untitled

a guest Jun 21st, 2018 49 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. 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.
  2.  
  3. To install, save this file into an installed django app's management/commands/ directory, eg
  4.  
  5.     myapp/management/commands/simplemigration.py
  6.  
  7. Run the command from the command line as follows
  8.  
  9.     python manage.py simplemigration APPNAME.MODELNAME
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top