Skip to content

Commit

Permalink
Verify that index prefix length works also without liquibase-percona
Browse files Browse the repository at this point in the history
  • Loading branch information
adangel committed Nov 19, 2021
1 parent 62d2ca3 commit dd2f1b0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/it/createIndexPrefix/verify.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,10 @@ def sqlText = sql.text;
assert sqlText.contains("pt-online-schema-change --alter-foreign-keys-method=auto --nocheck-unique-key-change --alter=\"ADD UNIQUE INDEX emailIdx (email(10))\"")
assert !sqlText.contains("password=${config_password}")

// Verify that index prefix length works also without liquibase-percona
// See also https://github.com/liquibase/liquibase/issues/2191
assert sqlText.contains("CREATE UNIQUE INDEX emailIdx ON person(email(10));")

def con, s;
try {
def props = new Properties();
Expand Down

0 comments on commit dd2f1b0

Please sign in to comment.