Simple App to showcase Flyway migrations:
@MappedEntity("person")
data class Person(
@field:Id @AutoPopulated
val id: UUID = UUID.randomUUID(),
val name: String,
val company: String
)
Refer to migration folder:
V1__initial.sql
V2__AddColumn.sql
and application.yml
:
flyway:
datasources:
default:
enabled: true # true | false
baseline-on-migrate: true