Add alembic plumbing for database schema migrations.

This commit is contained in:
jakedt 2014-04-09 19:11:33 -04:00
parent 4d4f3b1c18
commit fc7756a3c2
6 changed files with 259 additions and 7 deletions

View file

@ -70,12 +70,11 @@ class DefaultConfig(object):
TESTING = True
# DB config
DB_NAME = 'test/data/test.db'
DB_URI = 'sqlite:///test/data/test.db'
DB_CONNECTION_ARGS = {
'threadlocals': True,
'autorollback': True,
}
DB_DRIVER_NAME = "SqliteDatabase"
@staticmethod
def create_transaction(db):