6
0
mirror of https://github.com/ChristianLight/tutor.git synced 2024-12-12 14:17:46 +00:00

Fix running migrations

Migrations were being done on openedx-assets, which does not depend on
mysql. As a consequence, the mysql container was not being created on
"migrate" and migrations were failing with "Timeout after 20s".
This commit is contained in:
Régis Behmo 2019-04-28 08:26:45 +02:00
parent acbd5ae371
commit 92d7e7c418

View File

@ -8,7 +8,8 @@ def migrate(root, run_func):
config = tutor_config.load(root) config = tutor_config.load(root)
click.echo(fmt.info("Creating all databases...")) click.echo(fmt.info("Creating all databases..."))
run_template(root, config, "openedx-assets", "create_databases.sh", run_func) # Note: run this only when lms is activated?
run_template(root, config, "lms", "create_databases.sh", run_func)
if config["ACTIVATE_LMS"]: if config["ACTIVATE_LMS"]:
click.echo(fmt.info("Running lms migrations...")) click.echo(fmt.info("Running lms migrations..."))