...
 
Commits (2)
[databases]
[database]
two_phase_commit=false
[database:main]
......
......@@ -4,8 +4,8 @@ set -ex
/wait-for-it.sh $ACOUSTID_TEST_INDEX_HOST:6080
/wait-for-it.sh $ACOUSTID_TEST_REDIS_HOST:6379
/wait-for-it.sh $ACOUSTID_TEST_DB_DEFAULT_HOST:5432
/wait-for-it.sh $ACOUSTID_TEST_DB_SLOW_HOST:5432
/wait-for-it.sh $ACOUSTID_TEST_DB_MAIN_HOST:5432
/wait-for-it.sh $ACOUSTID_TEST_DB_IMPORT_HOST:5432
export PIP_CACHE_DIR=`pwd`/pip-cache
......
......@@ -52,7 +52,7 @@ def run_migrations_offline():
script output.
"""
for name, db_config in acoustid_config.databases.databases.items():
for name, db_config in acoustid_config.databases.databases['master'].items():
logger.info("Migrating database %s" % name)
context.configure(
......@@ -74,7 +74,7 @@ def run_migrations_online():
"""
engines = {}
for name, db_config in acoustid_config.databases.databases.items():
for name, db_config in acoustid_config.databases.databases['master'].items():
engines[name] = rec = {}
rec["engine"] = db_config.create_engine(poolclass=pool.NullPool)
......