Renamed monarc_common to monarc_structure

pull/86/head
Cédric Bonhomme 2017-11-20 08:37:29 +01:00
parent a92dd4d563
commit cba8598bca
No known key found for this signature in database
GPG Key ID: A1CB94DE57B7A70D
3 changed files with 9 additions and 2 deletions

View File

@ -7,7 +7,7 @@ project using this one.
If you have already installed MONARC and want to upgrade to a later version, you If you have already installed MONARC and want to upgrade to a later version, you
can use the provided script: can use the provided script:
$ scripts/update-all.sh $ ./scripts/update-all.sh
$ sudo systemctl restart apache2 $ sudo systemctl restart apache2
@ -61,10 +61,16 @@ Change SQL Mode in my.cnf:
sql-mode = MYSQL40 sql-mode = MYSQL40
There are 2 databases: There are 2 databases:
* monarc_common contains models and data created by CASES; * monarc_common contains models and data created by CASES;
* monarc_cli contains all client risk analyses. Each analysis is based on CASES * monarc_cli contains all client risk analyses. Each analysis is based on CASES
model of monarc_common. model of monarc_common.
Populate the monarc_common database:
mysql -u user -p monarc_common < db-bootstrap/monarc_structure.sql
mysql -u user -p monarc_common < db-bootstrap/monarc_data.sql
API API
--- ---
@ -84,6 +90,7 @@ Create 2 symbolic links in the root of project directory:
ln -s ./../vendor/monarc/frontoffice MonarcFO ln -s ./../vendor/monarc/frontoffice MonarcFO
There are 2 parts: There are 2 parts:
* one only for front office; * one only for front office;
* one common for front office and back office (private project). * one common for front office and back office (private project).

View File

@ -205,7 +205,7 @@ echo -e "\n--- Creation of the data bases---\n"
mysql -u $DBUSER_MONARC -p$DBPASSWORD_MONARC -e "CREATE DATABASE monarc_cli DEFAULT CHARACTER SET utf8 DEFAULT COLLATE utf8_general_ci;" > /dev/null 2>&1 mysql -u $DBUSER_MONARC -p$DBPASSWORD_MONARC -e "CREATE DATABASE monarc_cli DEFAULT CHARACTER SET utf8 DEFAULT COLLATE utf8_general_ci;" > /dev/null 2>&1
mysql -u $DBUSER_MONARC -p$DBPASSWORD_MONARC -e "CREATE DATABASE monarc_common DEFAULT CHARACTER SET utf8 DEFAULT COLLATE utf8_general_ci;" > /dev/null 2>&1 mysql -u $DBUSER_MONARC -p$DBPASSWORD_MONARC -e "CREATE DATABASE monarc_common DEFAULT CHARACTER SET utf8 DEFAULT COLLATE utf8_general_ci;" > /dev/null 2>&1
echo -e "\n--- Populating MONARC DB ---\n" echo -e "\n--- Populating MONARC DB ---\n"
mysql -u $DBUSER_MONARC -p$DBPASSWORD_MONARC monarc_common < db-bootstrap/monarc_common.sql > /dev/null 2>&1 mysql -u $DBUSER_MONARC -p$DBPASSWORD_MONARC monarc_common < db-bootstrap/monarc_structure.sql > /dev/null 2>&1
mysql -u $DBUSER_MONARC -p$DBPASSWORD_MONARC monarc_common < db-bootstrap/monarc_data.sql > /dev/null 2>&1 mysql -u $DBUSER_MONARC -p$DBPASSWORD_MONARC monarc_common < db-bootstrap/monarc_data.sql > /dev/null 2>&1