GenerateMigrationsParameters

interface GenerateMigrationsParameters : WorkParameters

Parameter objects for the migrations extension's work actions.

Properties

Link copied to clipboard
abstract var classpathUrls: List<URL>

Optional classpath that is scanned for Exposed table definitions. Defaults to the project's runtime classpath.

Link copied to clipboard
abstract var databasePassword: String?

Password for the database connection, which should be considered as the current schema. This is optional only if testContainersImageName is not set.

Link copied to clipboard
abstract var databaseUrl: String?

URL for the database connection, which should be considered as the current schema. This is optional only if testContainersImageName is not set.

Link copied to clipboard
abstract var databaseUser: String?

Username for the database connection, which should be considered as the current schema. This is optional only if testContainersImageName is not set.

Link copied to clipboard
abstract var debug: Boolean

Whether logger DEBUG level is enabled.

Link copied to clipboard
abstract val fileDirectory: DirectoryProperty

Directory where the generated migration scripts will be stored. Defaults to src/main/resources/db/migration.

Link copied to clipboard
abstract var fileExtension: String

Optional file extension for migration scripts. Defaults to .sql.

Link copied to clipboard
abstract var filePrefix: String

Optional prefix for migration script names. Defaults to V.

Link copied to clipboard
abstract var fileSeparator: String

Optional separator for migration script names. Defaults to __.

Link copied to clipboard

Optional version format for migration script names. Defaults to using the full current timestamp (with seconds) in the format YYYYMMDDHHMMSS.

Link copied to clipboard
abstract var fullFileName: String?

Optional command line argument that overrides any filename configurations declared in the build file. Passing an argument to this option means all migration statements will be stored in a single generated file of this name, which should include the required extension as well.

Link copied to clipboard
abstract var tablesPackage: String

Package name where Exposed table definitions are expected to be located.

Link copied to clipboard

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.

Link copied to clipboard

Optional flag for whether the descriptive part of migration script names should be all in upper-case. Defaults to true.