Skip to content
theiviaxx edited this page Apr 1, 2013 · 4 revisions

##Previous Install First, if you have already setup a server and need to keep your migrations, please do the follwing before updating Frog:

  • Under the project root, create a folder called migrations
  • Create an empty file in migrations called __init__.py to make it a package that can be imported
  • Create a new folder called frog under the migrations folder
  • Create an empty file in frog called __init__.py to make it a package that can be imported
  • Copy the migrations folder from the frog install dir to the new migrations/frog folder:
  • Linux: /usr/local/lib/python27/site-packages/frog (possibly dist-packages)
  • Windows: C:\Python27\Lib\site-packages\frog

This should keep your migrations in tact.

##Performing Migrations

To perform a migration, cd into the project dir (with manage.py) and run the following:

  • python manage.py schemamigration frog --auto
  • python manage.py migrate frog

This should update all tables in your database as needed.

Clone this wiki locally