So, I was able to migrate my database, but spring boot always use the "default" database and doesn't take database on my "DBManage" schemas.
spring:
datasource:
username: speed
url: jdbc:postgresql://localhost:5432/DBManage
password: userpass66!
jpa:
properties:
hibernate:
dialect: org.hibernate.dialect.PostgreSQLDialect
format_sql: 'true'
hibernate:
ddl-auto: update
show-sql: 'true'
logging:
level:
org.flywaydb: DEBUG
org.hibernate.SQL: DEBUG
org.hibernate.type.descriptor.sql.BasicBinder: TRACE
flyway:
enabled: 'true'
baseline-version: 0
url: jdbc:postgresql://localhost:5432/DBManage
user: speed
password: userpass66!
default-schema: DBManage
locations: classpath:db/migration
but it takes only the default schema :
2025-02-08T14:21:13.071+01:00 INFO 18208 --- [ restartedMain]
o.f.core.internal.command.DbValidate : Successfully validated 3 migrations (execution time 00:00.241s)
2025-02-08T14:21:13.171+01:00 INFO 18208 --- [ restartedMain] o.f.core.internal.command.DbMigrate : Current version of schema "DBManage": 1
2025-02-08T14:21:13.182+01:00 INFO 18208 --- [ restartedMain] o.f.core.internal.command.DbMigrate : Schema "DBManage" is up to date. No migration necessary.
2025-02-08T14:21:13.293+01:00 INFO 18208 --- [ restartedMain] o.hibernate.jpa.internal.util.LogHelper : HHH000204: Processing PersistenceUnitInfo [name: default]
2025-02-08T14:21:13.391+01:00 INFO 18208 --- [ restartedMain] org.hibernate.Version : HHH000412: Hibernate ORM core version 6.6.5.Final
2025-02-08T14:21:13.439+01:00 INFO 18208 --- [ restartedMain] o.h.c.internal.RegionFactoryInitiator : HHH000026: Second-level cache disabled
2025-02-08T14:21:13.815+01:00 INFO 18208 --- [ restartedMain] o.s.o.j.p.SpringPersistenceUnitInfo : No LoadTimeWeaver setup: ignoring JPA class transformer
2025-02-08T14:21:13.885+01:00 INFO 18208 --- [ restartedMain] com.zaxxer.hikari.HikariDataSource : HikariPool-1 - Starting...
2025-02-08T14:21:13.962+01:00 INFO 18208 --- [ restartedMain] com.zaxxer.hikari.pool.HikariPool : HikariPool-1 - Added connection org.postgresql.jdbc.PgConnection@25
Can anyone tell me why please ?