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>
|
||||
<properties>
|
||||
<java.version>23</java.version>
|
||||
<flyway.version>11.2.0</flyway.version> <!-- Version packaged with Spring Boot is bugged. Upgrade was required -->
|
||||
</properties>
|
||||
<dependencies>
|
||||
<dependency>
|
||||
@ -39,8 +40,9 @@
|
||||
<artifactId>spring-boot-starter-web</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.liquibase</groupId>
|
||||
<artifactId>liquibase-core</artifactId>
|
||||
<groupId>org.flywaydb</groupId>
|
||||
<artifactId>flyway-database-postgresql</artifactId>
|
||||
<version>${flyway.version}</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<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 (
|
||||
id SERIAL PRIMARY KEY,
|
||||
name VARCHAR(255) NOT NULL
|
Reference in New Issue
Block a user