For the production version, using tools such as
is not recommended.
Instead, database migration tools such as Liquibase or Flyway should be used.
For qc-atlas we have chosen the former.
- Edit your Hibernate mapped classes as needed (add and remove classes and attributes)
mvn compile && mvn liquibase:diffChangeLog
- Manually check that the new
changelog/yyyy-MM-dd-hh-mm.xmldoes what you expect, edit it if it does not (for details on how to do that, see the Changelogs section)
mvn liquibase:updateto update your target database's schema (during development, this is done automatically when starting the backend)
The default database credentials are stored in the root
You can override these using Maven profiles.
Liquibase uses a changelog to list all changes, in order, made to your database. To implement complex changes (for example, migrating data), these changelogs need to be written/updated manually. The following resources help with that:
All changelogs are stored in the
org.planqk.atlas.core module at
- Right now, column type changes are ignored by the automatic diff generation tool (see GH). These changes need to be recorded manually.