MigrationsExtension
Configuration of the migrations extension for the Exposed Gradle Plugin.
This extension allows users to configure the behavior of the plugin in their build.gradle.kts file in a nested migrations block.
Properties
Password for the database connection, which should be considered as the current schema. This is optional only if testContainersImageName is not set.
URL for the database connection, which should be considered as the current schema. This is optional only if testContainersImageName is not set.
Username for the database connection, which should be considered as the current schema. This is optional only if testContainersImageName is not set.
Directory where the generated migration scripts will be stored. Defaults to src/main/resources/db/migration.
File extension for migration scripts. Defaults to .sql.
Prefix for migration script names. Defaults to V.
Separator for migration script names. Defaults to __.
Version format for migration script names. Defaults to using the full current timestamp (with seconds) in the format YYYYMMDDHHMMSS.
Package name where Exposed table definitions are located. The plugin will scan this package for table definitions.
Docker image name for when using TestContainers to apply existing scripts before generating new ones. This is optional only if no values are set for any database properties.
Whether the descriptive part of migration script names should be all in upper-case. Defaults to true.