Commit 1490eca6 authored by Christian BUFFIN's avatar Christian BUFFIN
Browse files

Ajout des données pour le dévelopement, mise à jour du plugin cakephp/postgres en version 1.0.5

parent 8e44d87c
......@@ -4,4 +4,6 @@ DB_PASSWORD=webdpo
DB_APP_NAME=webdpo
DB_TEST_NAME=webdpo_test
ADD_DATA_DEV=1
TZ=Europe/Paris
DB_HOST=web-dpo-db
DB_USERNAME=webdpo
DB_PASSWORD=webdpo
DB_APP_NAME=webdpo
DB_TEST_NAME=webdpo_test
ADD_DATA_DEV=1
TZ=Europe/Paris
DB_HOST=web-dpo-db
DB_USERNAME=webdpo
DB_PASSWORD=webdpo
DB_APP_NAME=webdpo
DB_TEST_NAME=webdpo_test
ADD_DATA_DEV=0
TZ=Europe/Paris
......@@ -42,6 +42,7 @@
/sonar-project.properties
/sonar-scanner-3.3.0.1492-linux
/.scannerwork/
/.env
# OS generated files #
######################
......
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -14,6 +14,7 @@ services:
- web-dpo-golem
- web-dpo-mailcatcher
environment:
- ADD_DATA_DEV=${ADD_DATA_DEV}
- DATA_HOST=${DB_HOST}
- DATA_USER=${DB_USERNAME}
- DATA_PASSWORD=${DB_PASSWORD}
......
......@@ -192,6 +192,10 @@ init_data_db()
${__APP_DIR__}/app/Config/Schema/CreationBase/patchs/1.1.0_to_1.2.0.sql
)
if [ "${ADD_DATA_DEV}" = "1" ] ; then
files+=(${__APP_DIR__}/app/Config/Schema/CreationBase/data-dev/1.2.0.sql)
fi
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