Change from Liquibase to Flyway because it's supported by GraalVM
This commit is contained in:
6
pom.xml
6
pom.xml
@ -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>
|
||||||
|
16
src/main/resources/META-INF/native-image/reflect-config.json
Normal file
16
src/main/resources/META-INF/native-image/reflect-config.json
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
[
|
||||||
|
{
|
||||||
|
"name": "org.flywaydb.core.internal.publishing.PublishingConfigurationExtension",
|
||||||
|
"methods": [
|
||||||
|
{
|
||||||
|
"name": "isCheckDriftOnMigrate"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "setCheckDriftOnMigrate",
|
||||||
|
"parameterTypes": [
|
||||||
|
"boolean"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
@ -1,4 +0,0 @@
|
|||||||
databaseChangeLog:
|
|
||||||
- include:
|
|
||||||
file: 01-initial-schema.sql
|
|
||||||
relativeToChangelogFile: true
|
|
@ -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
|
Reference in New Issue
Block a user