Skip to content

doptio/flask-evolution

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

## 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

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%