Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,5 @@ symfony_project_composer_run_install: True
symfony_project_enable_cache_warmup: True
symfony_project_fire_schema_update: False
symfony_project_fire_migrations: False
symfony_project_symlink_assets: True
symfony_project_symlink_assets: True
symfony_project_database_type: mongodb
6 changes: 5 additions & 1 deletion tasks/50-migrations.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,8 @@

- name: Run mongodb schema update.
action: shell {{symfony_project_php_path}} {{symfony_console}} doctrine:mongodb:schema:update --no-interaction
when: symfony_project_fire_schema_update == true and composer_content.stdout.find('mongodb-odm') != -1
when: symfony_project_fire_schema_update == true and composer_content.stdout.find('mongodb-odm') != -1 and symfony_project_database_type = 'mongodb'

- name: Run mysql schema update.
action: shell {{symfony_project_php_path}} {{symfony_console}} doctrine:schema:update --force --no-interaction
when: symfony_project_fire_schema_update == true and symfony_project_database_type = 'mysql'