From 27af4e0e502335fe1826a5ca62717b7190c3cffd Mon Sep 17 00:00:00 2001 From: Thijs Kinkhorst Date: Mon, 14 Oct 2024 14:52:35 +0200 Subject: [PATCH] Report on migrations status --- roles/engineblock/tasks/main.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/roles/engineblock/tasks/main.yml b/roles/engineblock/tasks/main.yml index 2bd81fb6d..2baa50469 100644 --- a/roles/engineblock/tasks/main.yml +++ b/roles/engineblock/tasks/main.yml @@ -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: