Skip to content

Commit

Permalink
Report on migrations status
Browse files Browse the repository at this point in the history
  • Loading branch information
thijskh committed Oct 14, 2024
1 parent 5ed1097 commit 27af4e0
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions roles/engineblock/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,18 @@
changed_when: False
run_once: True

- name: Check doctrine migrations status
shell: php72 app/console doctrine:migrations:status --env={{ engine_apache_symfony_environment }}
args:
chdir: "{{ openconext_releases_dir }}/OpenConext-engineblock"
register: eb_database_migration_status
changed_when: False
run_once: True

- name: Print return information from the previous task
ansible.builtin.debug:
var: eb_database_migration_status

- name: Create the database schema
command: "php72 app/console doctrine:schema:create -n --env={{ engine_apache_symfony_environment }}"
args:
Expand Down

0 comments on commit 27af4e0

Please sign in to comment.