# Path: config.py
# SQLALCHEMY_DATABASE_URI = os.environ['DATABASE_URL'] 
# 
# Path: config.py
# SQLALCHEMY_MIGRATE_REPO = os.path.join(basedir, 'db2_repository')


from migrate.versioning import api
from config import SQLALCHEMY_DATABASE_URI
from config import SQLALCHEMY_MIGRATE_REPO
from app import db
import os.path
#!flask/bin/python
db.create_all()
if not os.path.exists(SQLALCHEMY_MIGRATE_REPO):
    api.create(SQLALCHEMY_MIGRATE_REPO, 'database2 repository')
    api.version_control(SQLALCHEMY_DATABASE_URI, SQLALCHEMY_MIGRATE_REPO)
else:

# Path: config.py
# SQLALCHEMY_DATABASE_URI = os.environ['DATABASE_URL'] 
# 
# Path: config.py
# SQLALCHEMY_MIGRATE_REPO = os.path.join(basedir, 'db2_repository')


# Path: db_create.py
from migrate.versioning import api
from config import SQLALCHEMY_DATABASE_URI
from config import SQLALCHEMY_MIGRATE_REPO
from app import db
import os.path

#!flask/bin/python
db.create_all()
if not os.path.exists(SQLALCHEMY_MIGRATE_REPO):
    api.create(SQLALCHEMY_MIGRATE_REPO, 'database2 repository')
    api.version_control(SQLALCHEMY_DATABASE_URI, SQLALCHEMY_MIGRATE_REPO)
else:

    api.version_control(SQLALCHEMY_DATABASE_URI, SQLALCHEMY_MIGRATE_REPO,