This module includes persistence related functionality: Liquibase migration scripts and MyBatis mapper interfaces\xml.
Create an empty PostgreSQL database. Name of the created database should be identical in these places:
-
maven properties
registry.db.name
andregistry.db.url
(see ws module configuration) -
java property
registry.datasource.url
in application.yml -
java property
registry.datasource.url
in application-test.yml
Update database manually by liquibase-maven-plugin (use values for db.url, db.username, db.password):
mvn liquibase:update -Dliquibase.url=<db.url> -Dliquibase.username=<db.username> -Dliquibase.password=<db.password> -Dliquibase.changeLogFile=src/main/resources/liquibase/master.xml -Dliquibase.defaultSchemaName=public