Back to Flyway

Clean Provisioner

documentation/Reference/Configuration/Environments Namespace/Environment Provisioner Setting/Clean Provisioner.md

latest895 B
Original Source

This provisioner allows for re-provisioning of databases using clean. It is used as the default mechanism in Flyway Desktop for resetting the shadow database whenever the state is stale.

This affects re-provisioning only, and has no effect on provisioning. It can only be used with pre-existing databases.

To configure this provisioner, set the value of the provisioner parameter to clean

Example

This can be used in the TOML configuration like this:

toml
[environments.shadow]
url = "jdbc:sqlserver://localhost:1433;database=Shadow;encrypt=true;integratedSecurity=true"
provisioner = "clean"