GenerateMigrationsMojo
Mojo for generating SQL migration scripts from Exposed table definitions.
Goal: exposed:generate-migrations.
Properties
Password for the database connection. Required when testContainersImageName is not set.
JDBC URL for the live database treated as the current schema. Required when testContainersImageName is not set.
Username for the database connection. Required when testContainersImageName is not set.
Directory where generated migration scripts will be stored. Defaults to src/main/resources/db/migration relative to the project root.
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.
Override that writes all migration statements to a single file with the given name. Must include the file extension. When set, all other filename configuration is ignored.
Package name where Exposed table definitions are located.
Docker image name. When set, a Testcontainer is started and existing scripts in fileDirectory are applied via Flyway before generating new ones. Mutually exclusive with the live-database connection parameters.
Whether the descriptive part of migration script names should be all upper-case. Defaults to true.