-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implement Flyway actions #20
Comments
A This is likely preferable to repeatable files overwriting entries for previous runs of the same data, affecting the ability to reconstruct previous actions. |
Flyway also supports Currently, There have been conversations as to whether Other Flyway options:
Not all of these would be suitable for |
Flyway
... with the documentation showing a 'State' of What would be applied in |
Flyway 4.x supports
migrate
,clean
,info
,validate
,baseline
, andrepair
.myway
supportsmigrate
(explicitly or by default),--clear-metadata
(to drop themyway
metadata *) and includesdropschema.sh
(to drop the specified databases), whilst--check
is accepted as an argument but does nothing.*
--clear-metadata
used to re-create blank metadata tables after the existing ones were removed, but this didn't appear to be a good fit for the intent of the action. Flywayclean
leaves the databases themselves in-place, and so is more equivalent to runningdropschema.sh
and then runningmyway.pl --init
.info
looks similar to what would be provided by Issue #14, andbaseline
can be achieved by providing a parameter to--init
or in a more involved but more concrete fashion be using an environment-specific placeholder/migration-schema.validate
is an interesting concept - rather than checking the validity of the schema-files themselves, it instead compares the available schema-files against what has already been applied to the database. We could usemyway_schema_version
contents to confirm that schema-files checksums have not changed with a simple check.repair
appears to be a cleanup option which removes metadata entries denoting failures (for databases not supporting DDL transactions, such as MySQL) and recalculates the Flyway-specific checksums... both of which sound as if they could do more harm than good.The text was updated successfully, but these errors were encountered: