Database Layer of Objectified
This project contains the database for Objectified.
This database schema is defined for Postgres.
You must install schema-evolution-manager
In order to run the loading script, you must have the following environment variables set:
- POSTGRES_USER
- POSTGRES_PASSWORD
- POSTGRES_HOST
- POSTGRES_PORT
All of these will be used to create a postgresql:// URL for which the psql command
will use.
To run the script, simply run:
sh ./run.shThis will build and execute the SQL commands to generate the schema.
NOTE:
If you have already run this script once, and want to back up the data, make sure to usepg_dumpcommand to dump your schema beforehand. Otherwise, if you have loaded your database prior to this, the database will simply include an upgrade path from the point which you ran the install script.
