Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Liquibase configuration (diff when JPA entities not modified) #54

Open
wants to merge 8 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
CREATE DOMAIN JSONB AS JSON;
Tristan-WorkGH marked this conversation as resolved.
Show resolved Hide resolved
/*CREATE DOMAIN OID AS BINARY LARGE OBJECT;*/
/*create domain timestampstz as timestamp;*/
2 changes: 1 addition & 1 deletion powsybl-parent/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@
<dependency>
<groupId>com.powsybl</groupId>
<artifactId>powsybl-build-tools</artifactId>
<version>18-SNAPSHOT</version>
<version>${powsybl-build-tools.version}</version>
</dependency>
</dependencies>
</plugin>
Expand Down
12 changes: 9 additions & 3 deletions powsybl-parent/powsybl-parent-ws/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
<git-id.failOnUnableToExtractRepoInfo>false</git-id.failOnUnableToExtractRepoInfo>

<!-- for liquibase plugin -->
<liquibase-core.version>4.20.0</liquibase-core.version>
<liquibase-core.version>4.24.0</liquibase-core.version>
<!--
liquibase-hibernate6 4.20 (the same as liquibase-core) generates useless changesets, 4.23.2 doesn't seem to have this problem.
for example, but maybe there are more
Expand All @@ -69,12 +69,13 @@
still generates
<modifyDataType columnName="myuuid" newDataType="bytea"/>
-->
<liquibase-hibernate.version>4.23.2</liquibase-hibernate.version>
<liquibase-hibernate.version>4.24.0</liquibase-hibernate.version>
<validation-api.version>3.0.2</validation-api.version>
<liquibase-diff.outputFile>src/main/resources/db/changelog/changesets/changelog_${maven.build.timestamp}.xml</liquibase-diff.outputFile>
<liquibase.username>sa</liquibase.username>
<liquibase.databaseDriver>org.h2.Driver</liquibase.databaseDriver>
<liquibase.databaseUrl>jdbc:h2:./target/dummyDB</liquibase.databaseUrl>
<liquibase.databaseUrl>jdbc:h2:./target/dummyDB;MODE=PostgreSQL;DEFAULT_NULL_ORDERING=HIGH;INIT=runscript from 'classpath:/powsybl-build-tools/liquibase-h2-init.sql'</liquibase.databaseUrl>
<!--;DATABASE_TO_LOWER=TRUE-->
<liquibase.referenceDatabaseUrl>hibernate:spring:${liquibase-hibernate-package}?dialect=org.hibernate.dialect.PostgreSQLDialect&amp;hibernate.physical_naming_strategy=org.hibernate.boot.model.naming.CamelCaseToUnderscoresNamingStrategy&amp;hibernate.implicit_naming_strategy=org.springframework.boot.orm.jpa.hibernate.SpringImplicitNamingStrategy</liquibase.referenceDatabaseUrl>
<liquibase.referenceDatabaseDriver>liquibase.ext.hibernate.database.connection.HibernateDriver</liquibase.referenceDatabaseDriver>
<liquibase-hibernate-package>PROPERTY_TO_BE_DEFINED_IN_PROJECTS</liquibase-hibernate-package>
Expand Down Expand Up @@ -203,6 +204,11 @@ jib.to.image = finalName;
<artifactId>jakarta.validation-api</artifactId>
<version>${validation-api.version}</version>
</dependency>
<dependency>
<groupId>com.powsybl</groupId>
<artifactId>powsybl-build-tools</artifactId>
<version>${powsybl-build-tools.version}</version>
</dependency>
</dependencies>

</plugin>
Expand Down