Commit 16110c76 by John Jarvis

fixing migrate

parent 0ce6ba0f
...@@ -44,7 +44,7 @@ ...@@ -44,7 +44,7 @@
when: celery_worker is defined and not devstack when: celery_worker is defined and not devstack
sudo_user: "{{ supervisor_user }}" sudo_user: "{{ supervisor_user }}"
# Fake migrations, only when fake_migrations is defined # Fake syncdb with migrate, only when fake_migrations is defined
# This overrides the database name to be the test database which # This overrides the database name to be the test database which
# the default application user has full write access to # the default application user has full write access to
- name: syncdb and migrate - name: syncdb and migrate
...@@ -59,7 +59,7 @@ ...@@ -59,7 +59,7 @@
- "restart edxapp" - "restart edxapp"
- "restart edxapp_workers" - "restart edxapp_workers"
# Regular migrations # Regular syncdb with migrate
- name: syncdb and migrate - name: syncdb and migrate
shell: > shell: >
chdir={{ edxapp_code_dir }} chdir={{ edxapp_code_dir }}
...@@ -70,22 +70,21 @@ ...@@ -70,22 +70,21 @@
- "restart edxapp" - "restart edxapp"
- "restart edxapp_workers" - "restart edxapp_workers"
# Fake migrations, only when fake_migrations is defined # Fake migrate, only when fake_migrations is defined
# This overrides the database name to be the test database which # This overrides the database name to be the test database which
# the default application user has full write access to # the default application user has full write access to
- name: syncdb and migrate - name: db migrate
shell: > shell: >
chdir={{ edxapp_code_dir }} chdir={{ edxapp_code_dir }}
{{ edxapp_venv_bin}}/python manage.py lms syncdb --migrate --noinput --settings=aws_migrate {{ edxapp_venv_bin}}/python manage.py lms migrate --noinput --settings=aws_migrate
when: fake_migrations is defined and migrate_db is defined and migrate_db|lower == "yes" when: fake_migrations is defined and migrate_only is defined and migrate_only|lower == "yes"
sudo_user: "{{ edxapp_user }}" sudo_user: "{{ edxapp_user }}"
environment:
DB_MIGRATION_NAME: "{{ EDXAPP_TEST_MIGRATE_DB_NAME }}"
notify: notify:
- "restart edxapp" - "restart edxapp"
- "restart edxapp_workers" - "restart edxapp_workers"
# Regular migrations # Regular migrations
- name: db migrate - name: db migrate
shell: > shell: >
......
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