]>
git.datanom.net - wpp.git/blob - db_downgrade.py
2 from migrate
.versioning
import api
3 from config
import SQLALCHEMY_DATABASE_URI
4 from config
import SQLALCHEMY_MIGRATE_REPO
5 v
= api
.db_version(SQLALCHEMY_DATABASE_URI
, SQLALCHEMY_MIGRATE_REPO
)
6 api
.downgrade(SQLALCHEMY_DATABASE_URI
, SQLALCHEMY_MIGRATE_REPO
, v
- 1)
7 v
= api
.db_version(SQLALCHEMY_DATABASE_URI
, SQLALCHEMY_MIGRATE_REPO
)
8 print('Current database version: ' + str(v
))
This page took 0.085851 seconds and 6 git commands to generate.