After entity update, run:
./mvnw liquibase:diff
then
for dev database:
./mvnw liquibase:clearCheckSums
for prod database find in pom.xml:
<changeLogFile>src/main/resources/config/liquibase/master.xml</changeLogFile>
<diffChangeLogFile>src/main/resources/config/liquibase/changelog/${maven.build.timestamp}_changelog.xml</diffChangeLogFile>
<driver>com.mysql.jdbc.Driver</driver>
<url>jdbc:mysql://xxxxxxxxx.com:3306/dbase-dev</url>
<defaultSchemaName>dbase-dev</defaultSchemaName>
change <url> and <defaultSchemaName> to production database:
<changeLogFile>src/main/resources/config/liquibase/master.xml</changeLogFile>
<diffChangeLogFile>src/main/resources/config/liquibase/changelog/${maven.build.timestamp}_changelog.xml</diffChangeLogFile>
<driver>com.mysql.jdbc.Driver</driver>
<url>jdbc:mysql://xxxxxxxxx.com:3306/dbase-prod</url>
<defaultSchemaName>dbase-prod</defaultSchemaName>
and run:
./mvnw liquibase:clearCheckSums
After all change pom.xml to dev.
Brak komentarzy:
Prześlij komentarz