Skip to content
Simple migrations for Flask and SQLAlchemy
Branch: master
Clone or download
Pull request Compare This branch is 2 commits behind adamrt:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
flaskext
.gitignore
LICENSE
README
setup.py

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
You can’t perform that action at this time.