forked from adamrt/flask-evolution
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathREADME
More file actions
26 lines (17 loc) · 707 Bytes
/
README
File metadata and controls
26 lines (17 loc) · 707 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
## 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