Commit 8db4c3a6 by Kevin Falcone

Accept additional arguments to the migrate scripts

This allows us to run `edxapp-migrate-lms --list` for migration checking
parent 57063bee
...@@ -2,6 +2,6 @@ ...@@ -2,6 +2,6 @@
{% for db in cms_auth_config.DATABASES.keys() %} {% for db in cms_auth_config.DATABASES.keys() %}
{%- if db != 'read_replica' %} {%- if db != 'read_replica' %}
sudo -E -u {{ edxapp_user }} env "PATH=$PATH" {{ edxapp_venv_bin}}/python manage.py cms migrate --database {{ db }} --noinput --settings $EDX_PLATFORM_SETTINGS sudo -E -u {{ edxapp_user }} env "PATH=$PATH" {{ edxapp_venv_bin}}/python manage.py cms migrate --database {{ db }} --noinput --settings $EDX_PLATFORM_SETTINGS $@
{% endif %} {% endif %}
{% endfor %} {% endfor %}
...@@ -2,6 +2,6 @@ ...@@ -2,6 +2,6 @@
{% for db in lms_auth_config.DATABASES.keys() %} {% for db in lms_auth_config.DATABASES.keys() %}
{%- if db != 'read_replica' %} {%- if db != 'read_replica' %}
sudo -E -u {{ edxapp_user }} env "PATH=$PATH" {{ edxapp_venv_bin}}/python manage.py lms migrate --database {{ db }} --noinput --settings $EDX_PLATFORM_SETTINGS sudo -E -u {{ edxapp_user }} env "PATH=$PATH" {{ edxapp_venv_bin}}/python manage.py lms migrate --database {{ db }} --noinput --settings $EDX_PLATFORM_SETTINGS $@
{% endif %} {% endif %}
{% endfor %} {% endfor %}
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