Commit 46862c9b authored by Théo GUILLON's avatar Théo GUILLON

Correction : docker

parent f0c90989
......@@ -16,6 +16,11 @@ INSERT INTO role_droits (role_id, liste_droit_id)
'Gestion des co-responsables lors de la déclaration d''un traitement',
'Gestion des sous-traitants lors de la déclaration d''un traitement'
)
AND liste_droits.id NOT IN (
SELECT existing_roles_droits.liste_droit_id
FROM role_droits AS existing_roles_droits
WHERE existing_roles_droits.role_id = roles.id
)
ORDER BY roles.id, liste_droits.id;
INSERT INTO droits (organisation_user_id, liste_droit_id, created, modified)
......@@ -37,6 +42,11 @@ INSERT INTO droits (organisation_user_id, liste_droit_id, created, modified)
'Gestion des co-responsables lors de la déclaration d''un traitement',
'Gestion des sous-traitants lors de la déclaration d''un traitement'
)
AND liste_droits.id NOT IN (
SELECT existing_droits.liste_droit_id
FROM droits AS existing_droits
WHERE existing_droits.organisation_user_id = organisations_users.id
)
ORDER BY organisations_users.id, liste_droits.id;
COMMIT;
......@@ -203,6 +203,8 @@ init_data_db()
files+=(${__APP_DIR__}/app/Config/Schema/CreationBase/data-dev/1.2.0.sql)
fi
files+=(${__APP_DIR__}/app/Config/Schema/CreationBase/patchs/2.0.0_to_2.0.1.sql)
for file in ${files[*]}; do
echo "Installation de ${file}"
psql postgres://${DATA_USER}:${DATA_PASSWORD}@${DATA_HOST}/${DATA_DB} -v "ON_ERROR_STOP=1" -f "${file}"
......
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