Renamed monarc_common to monarc_structure
parent
a92dd4d563
commit
cba8598bca
|
@ -7,7 +7,7 @@ project using this one.
|
|||
If you have already installed MONARC and want to upgrade to a later version, you
|
||||
can use the provided script:
|
||||
|
||||
$ scripts/update-all.sh
|
||||
$ ./scripts/update-all.sh
|
||||
$ sudo systemctl restart apache2
|
||||
|
||||
|
||||
|
@ -61,10 +61,16 @@ Change SQL Mode in my.cnf:
|
|||
sql-mode = MYSQL40
|
||||
|
||||
There are 2 databases:
|
||||
|
||||
* monarc_common contains models and data created by CASES;
|
||||
* monarc_cli contains all client risk analyses. Each analysis is based on CASES
|
||||
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
|
||||
---
|
||||
|
@ -84,6 +90,7 @@ Create 2 symbolic links in the root of project directory:
|
|||
ln -s ./../vendor/monarc/frontoffice MonarcFO
|
||||
|
||||
There are 2 parts:
|
||||
|
||||
* one only for front office;
|
||||
* one common for front office and back office (private project).
|
||||
|
||||
|
|
|
@ -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_common DEFAULT CHARACTER SET utf8 DEFAULT COLLATE utf8_general_ci;" > /dev/null 2>&1
|
||||
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
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue