Liquibase с mvn liquibase:diff не генерирует dropNotNullConstraint или addNotNullConstraintJAVA

Программисты JAVA общаются здесь
Ответить Пред. темаСлед. тема
Anonymous
 Liquibase с mvn liquibase:diff не генерирует dropNotNullConstraint или addNotNullConstraint

Сообщение Anonymous »


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
Реклама
Ответить Пред. темаСлед. тема

Быстрый ответ

Изменение регистра текста: 
Смайлики
:) :( :oops: :roll: :wink: :muza: :clever: :sorry: :angel: :read: *x)
Ещё смайлики…
   
К этому ответу прикреплено по крайней мере одно вложение.

Если вы не хотите добавлять вложения, оставьте поля пустыми.

Максимально разрешённый размер вложения: 15 МБ.

  • Похожие темы
    Ответы
    Просмотры
    Последнее сообщение

Вернуться в «JAVA»