I’m facing an issue after upgrading my project from Jmix 2.4.5 to Jmix 2.5.0.
When I start the application, Liquibase fails with the following error:
liquibase.exception.DatabaseException: ERROR: relation "databasechangelog" already exists
And the failed SQL statement is:
CREATE TABLE public.databasechangelog (
ID VARCHAR(255) NOT NULL,
AUTHOR VARCHAR(255) NOT NULL,
FILENAME VARCHAR(255) NOT NULL,
DATEEXECUTED TIMESTAMP WITHOUT TIME ZONE NOT NULL,
ORDEREXECUTED INTEGER NOT NULL,
EXECTYPE VARCHAR(10) NOT NULL,
MD5SUM VARCHAR(35),
DESCRIPTION VARCHAR(255),
COMMENTS VARCHAR(255),
TAG VARCHAR(255),
LIQUIBASE VARCHAR(20),
CONTEXTS VARCHAR(255),
LABELS VARCHAR(255),
DEPLOYMENT_ID VARCHAR(10)
)
It seems like Liquibase is trying to create the databasechangelog table even though it already exists in the database, which causes the startup process to fail.
Has anyone experienced this after upgrading to Jmix 2.5.0?
Any guidance on how to resolve this would be greatly appreciated.