]>
Commit | Line | Data |
---|---|---|
047d4d29 MR |
1 | #!flask/bin/python |
2 | from migrate.versioning import api | |
3 | from config import SQLALCHEMY_DATABASE_URI | |
4 | from config import SQLALCHEMY_MIGRATE_REPO | |
5 | api.upgrade(SQLALCHEMY_DATABASE_URI, SQLALCHEMY_MIGRATE_REPO) | |
6 | v = api.db_version(SQLALCHEMY_DATABASE_URI, SQLALCHEMY_MIGRATE_REPO) | |
7 | print('Current database version: ' + str(v)) |