Liquibase с mvn liquibase:diff не генерирует dropNotNullConstraint или addNotNullConstraint ⇐ JAVA
Liquibase с mvn liquibase:diff не генерирует dropNotNullConstraint или addNotNullConstraint
I am using the liquibase plugin with spring boot to generate the changeSets. Using mvn liquibase:diff I generate the changeSets with the differences between my entities and the database schema. Everything works correctly but when I modify the nullability of a @Column of my entity it doesn't generate the changeSets. It should be creating dropNotNullConstraint and addNotNullConstraint.
My liquibase.properties:
changeLogFile=src/main/resources/update/db.changelog/changelog-master.xml url=jdbc:postgresql://localhost:5432/... username=.... password=.... driver=org.postgresql.Driver referenceUrl=hibernate:spring:package.of.my.entities?dialect=org.hibernate.dialect.PostgreSQLDialect&hibernate.physical_naming_strategy=configuration.CustomPhysicalNamingStrategy diffChangeLogFile=src/main/resources/update/db.changelog/changelog-diff.xml I expect to use mvn liquibase:diff and liquibase should generate the changeSets of dropNotNullConstraint and addNotNullConstraint if I have modified the nullability of a column of my entity.
Источник: https://stackoverflow.com/questions/780 ... straint-or
I am using the liquibase plugin with spring boot to generate the changeSets. Using mvn liquibase:diff I generate the changeSets with the differences between my entities and the database schema. Everything works correctly but when I modify the nullability of a @Column of my entity it doesn't generate the changeSets. It should be creating dropNotNullConstraint and addNotNullConstraint.
My liquibase.properties:
changeLogFile=src/main/resources/update/db.changelog/changelog-master.xml url=jdbc:postgresql://localhost:5432/... username=.... password=.... driver=org.postgresql.Driver referenceUrl=hibernate:spring:package.of.my.entities?dialect=org.hibernate.dialect.PostgreSQLDialect&hibernate.physical_naming_strategy=configuration.CustomPhysicalNamingStrategy diffChangeLogFile=src/main/resources/update/db.changelog/changelog-diff.xml I expect to use mvn liquibase:diff and liquibase should generate the changeSets of dropNotNullConstraint and addNotNullConstraint if I have modified the nullability of a column of my entity.
Источник: https://stackoverflow.com/questions/780 ... straint-or
-
- Похожие темы
- Ответы
- Просмотры
- Последнее сообщение
-
-
Как исправить «обновление (liquibase.Contexts) в liquibase.Liquibase устарело»?
Anonymous » » в форуме JAVA - 0 Ответы
- 23 Просмотры
-
Последнее сообщение Anonymous
-