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