Variation v2 (SIMMAGE project) postgreSQL backend.
The backend is composed of a PostgreSQL database, divided in several schemas, and PL/PgSQL procedures.
For a normal usage, the database should not be accessed directly with SQL requests, but PL/PgSQL procedures should be used.
The PgProcedures (https://github.com/actimeo/pgproc) PHP module can be used to access PL/PgSQL procedures from PHP.
$ git clone https://github.com/actimeo/simmage-backend.git
$ cd simmage-backend
Install necessary PHP modules
$ composer install
In your favorite PostgreSQL server, create a new connection role
postgres$ psql
postgres=# create user simmage password 'apassword';
config.inc.php.sample
to config.inc.php
config.sh.sample
to config.sh
$ sudo su postgres -c ./scripts/update.sh
./vendor/bin/phpunit --stop-on-error src/
./scripts/import.php /path/to/arrangement/directory