Simple migrations for Flask and SQLAlchemy
Python
Pull request Compare This branch is 1 commit behind adamrt:master.

README

## Flask-Evolution ##

Simple migrations for Flask and SQLAlchemy. It was ported from simplemigrations
by Ricardo Chimal, Jr. and modified for sqlalchemy and to be a flask extension.

## Install ##

1) Standard Python Install

2) Init

   from flaskext.evolution import Evolution
   evolution = Evolution(app)

   @manager.command
   def migrate(action):
       evolution.manager(action)


## USAGE ##

    ./manage.py migrate init          # Create the migrations table
    ./manage.py migrate create        # Create new migration
    ./manage.py migrate run           # Run migrations
    ./manage.py migrate redo          # Redo last migration
    ./manage.py migrate undo          # Undo last migration