italomaia/flask-empty

Alembic integration

italomaia opened this issue · 2 comments

Flask-empty needs commands.py integration with alembic. Who lives without migrations nowadays?!

What is the problem?

pip install Flask-Migrate

add a couple of lines in manage.py

++
from flask.ext import migrate
...
manager.add_command('db', migrate.MigrateCommand)

Oh, I just wrote that to not forget adding this to empty's cookiecutter template. It would be nice ensuring flask-sqlalchemy support and flask-migrate support are tied.