Change from Liquibase to Flyway because it's supported by GraalVM

This commit is contained in:
2025-01-22 18:32:02 +01:00
parent 12ced4b11c
commit bcf8099217
4 changed files with 20 additions and 8 deletions

View File

@ -28,6 +28,7 @@
</scm> </scm>
<properties> <properties>
<java.version>23</java.version> <java.version>23</java.version>
<flyway.version>11.2.0</flyway.version> <!-- Version packaged with Spring Boot is bugged. Upgrade was required -->
</properties> </properties>
<dependencies> <dependencies>
<dependency> <dependency>
@ -39,8 +40,9 @@
<artifactId>spring-boot-starter-web</artifactId> <artifactId>spring-boot-starter-web</artifactId>
</dependency> </dependency>
<dependency> <dependency>
<groupId>org.liquibase</groupId> <groupId>org.flywaydb</groupId>
<artifactId>liquibase-core</artifactId> <artifactId>flyway-database-postgresql</artifactId>
<version>${flyway.version}</version>
</dependency> </dependency>
<dependency> <dependency>
<groupId>org.postgresql</groupId> <groupId>org.postgresql</groupId>

View File

@ -0,0 +1,16 @@
[
{
"name": "org.flywaydb.core.internal.publishing.PublishingConfigurationExtension",
"methods": [
{
"name": "isCheckDriftOnMigrate"
},
{
"name": "setCheckDriftOnMigrate",
"parameterTypes": [
"boolean"
]
}
]
}
]

View File

@ -1,4 +0,0 @@
databaseChangeLog:
- include:
file: 01-initial-schema.sql
relativeToChangelogFile: true

View File

@ -1,5 +1,3 @@
-- Liquibase formatted SQL
-- changeset dmigewant:1
CREATE TABLE example_table ( CREATE TABLE example_table (
id SERIAL PRIMARY KEY, id SERIAL PRIMARY KEY,
name VARCHAR(255) NOT NULL name VARCHAR(255) NOT NULL