MyBatis migrations(http://www.mybatis.org/migrations) is used to create or migrate the database and to manage migrations.
Its is used to create the database objects i.e schema, tablespaces, tables, indexes in the postgres database.
migrate info
on the terminal to confirm migrate command has been set up successfully. You should see something similar to the belowcore_tablespace_location='/opt/postgres/core'
error_tablespace_location ='/opt/postgres/error'
schedule_tablespace_location='/opt/postgres/schedule'
feed_tablespace_location='/opt/postgres/feed'
form_tablespace_location='/opt/postgres/form'
migrate up --path=assets/migrations
This will set the database and create the prerequisite database objects e.g schema, tables, etc.
Edit context.xml and update the postgres user, password and database name