Liquibase diff command always drops foreign keys

When I use mvn liquibase:diff command with spring boot it generates change log with dropping all foreign keys.
I’m using this versions:

org.liquibase
liquibase-core
3.9.0


org.liquibase.ext
liquibase-hibernate5
3.8


org.springframework.boot
spring-boot-starter-data-jpa
2.3.4.RELEASE

Hi @nurlan,
i’ll check it. Which database do you use?

I’m using PostgresSQL 12 in docker

@costinmoraru I forgot to tell that it is maven multi module project. each module has own entities

Hi @nurlan,
i tried with your configurations and everythings seems to work properly, please refer to my liquibase properties:
changeLogFile: db/postgres/liquibase-changeLog.xml
driver: org.postgresql.Driver
url: jdbc:postgresql://localhost:5432/app_ref
username: postgres
password: postgres
classpath: driver: oracle.jdbc.OracleDriver
referenceUrl: jdbc:postgresql://localhost:5432/app
diffChangeLogFile: db/postgres/liquibase-changeLog-ref.xml
referenceDriver: org.postgresql.Driver
referenceUsername: postgres
referencePassword: postgres

and to https://www.liquibase.org/blog/liquibase-diffs.

I got expected changeset.

I hope this can help you!