You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
But we could add some kind of new option (boolean), so that these are not added by default. You need to specify your own options via liquibase.percona.options.
Would you need this configuration per change? (the described above would be a global option)
adangel
changed the title
How can I disable --nocheck-unique-key-changes and --alter-foreign-keys-method=auto
Allow to override --nocheck-unique-key-changes and --alter-foreign-keys-method=auto
Apr 14, 2019
Hi @bellatoris ,
I've fixed this. Would you mind to test it?
You can now set the property liquibase.percona.options. It defaults to be --alter-foreign-keys-method=auto --nocheck-unique-key-change, but you can change it to your needs.
I need to set check-unique-key-changes and specify alter-foreign-keys-method as rebuild_constraints.
https://github.com/adangel/liquibase-percona/blob/c8f1089feb0a06430df938b3fc5c02c67ab91fc2/src/main/java/liquibase/ext/percona/PTOnlineSchemaChangeStatement.java#L122-L123
If there are option to disable --nocheck-unique-key-changes and --alter-foreign-keys-method=auto, it is really helpful.
The text was updated successfully, but these errors were encountered: