Skip to content

hllau/flask-evolution

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 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

About

Simple migrations for Flask and SQLAlchemy

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published