Commit b1b3d304 by Usman Khalid Committed by Fred Smith

Migrate instead of syncdb

parent 62a1de85
......@@ -103,9 +103,9 @@
- service_variants_enabled
# Syncdb with migrate when the migrate user is overridden in extra vars
- name: syncdb and migrate
command: "{{ COMMON_BIN_DIR }}/edxapp-syncdb-{{ item }}"
when: fake_migrations is not defined and migrate_db is defined and migrate_db|lower == "yes" and COMMON_MYSQL_MIGRATE_PASS and item != "lms-preview"
- name: migrate
command: "{{ COMMON_BIN_DIR }}/edxapp-migrate-{{ item }}"
when: migrate_db is defined and migrate_db|lower == "yes" and COMMON_MYSQL_MIGRATE_PASS and item != "lms-preview"
environment:
DB_MIGRATION_USER: "{{ COMMON_MYSQL_MIGRATE_USER }}"
DB_MIGRATION_PASS: "{{ COMMON_MYSQL_MIGRATE_PASS }}"
......
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