Hi,
I am currently testing deployment on AWS which works flawlessly when using an empty database to begin with. However, when I migrate data from the database on the local development machine to the AWS database, I keep getting liquibase exceptions of the form:
liquibase.exception.DatabaseException: ERROR: relation “user_” already exists
Postgres is being used on the development machine as well as on AWS, both times in docker with the same image. The data is being migrated by first using a dump from the local development machine using
docker exec postgresdb pg_dump --clean -U user -d database > /home/db.sql
and then importing it on AWS using
docker exec postgresdb psql -U user -d database -f /home/db.sql
The migration of the data takes place flawlessly and the databases look exactly the same on the local development machine and on AWS.
When the Jmix application is started on the local development machine, no liquibase exceptions are thrown. But when starting the application on AWS, the above mentioned liquibase exceptions (“relation already exists”) are thrown for each table. Why is this happening and what would be the solution to this?
Thank you.