Commit 40f470e2 by Kevin Falcone

Use the existing migrate script

migrate-edxapp-lms is templated to know if a given image points to 1, 2
or even 3 databases.  We don't have that knowledge in pre_supervisor
without parsing lms.auth.json for DATABASES and adding a bunch of
special-case logic.
parent 028332da
......@@ -11,8 +11,8 @@ import time
# Services that should be checked for migrations.
MIGRATION_COMMANDS = {
'lms': ". {env_file}; {python} {code_dir}/manage.py lms migrate --noinput --list --settings=aws",
'cms': ". {env_file}; {python} {code_dir}/manage.py cms migrate --noinput --list --settings=aws",
'lms': ". {env_file}; /edx/bin/edxapp-migrate-lms --noinput --list",
'cms': ". {env_file}; /edx/bin/edxapp-migrate-cms --noinput --list",
'xqueue': "{python} {code_dir}/manage.py xqueue migrate --noinput --settings=aws --db-dry-run --merge",
'ecommerce': ". {env_file}; {python} {code_dir}/manage.py migrate --noinput --list",
'programs': ". {env_file}; {python} {code_dir}/manage.py migrate --noinput --list",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment