]> git.datanom.net - wpp.git/blame_incremental - db_upgrade.py
Base user framework finished
[wpp.git] / db_upgrade.py
... / ...
CommitLineData
1#!flask/bin/python
2from migrate.versioning import api
3from config import SQLALCHEMY_DATABASE_URI
4from config import SQLALCHEMY_MIGRATE_REPO
5api.upgrade(SQLALCHEMY_DATABASE_URI, SQLALCHEMY_MIGRATE_REPO)
6v = api.db_version(SQLALCHEMY_DATABASE_URI, SQLALCHEMY_MIGRATE_REPO)
7print('Current database version: ' + str(v))
This page took 0.026996 seconds and 5 git commands to generate.