latest liquibase blocks validation blocks running update on mysql
See original GitHub issueEnvironment
Liquibase Version: 4.7.0
Liquibase Integration & Version: <Pick one: CLI, maven, gradle, spring boot, servlet, etc.>
Liquibase Extension(s) & Version:
Database Vendor & Version:
Operating System Type & Version:
Description
A clear and concise description of the issue being addressed. liquibase validator throws exception when running update to create clustered index on primary key using mysql db
Steps To Reproduce
create changeset log setting clustered:true for primary key (like this) - addPrimaryKey: tableName: valueset clustered: true columnNames: code, set_name constraintName: pk_valueset validate: true
List the steps to reproduce the behavior. using latest liquibase/liquibase image start container using changeset log similar to above
Actual Behavior
A clear and concise description of what happens in the software with the version used.
- Include console output if relevant
- Include log files if available.
chp-liquibase_1 | ####################################################
chp-liquibase_1 | ## _ _ _ _ ##
chp-liquibase_1 | ## | | () () | ##
chp-liquibase_1 | ## | | _ __ _ _ _ | |_ __ _ ___ ___ ##
chp-liquibase_1 | ## | | | |/
| | | | | '_ \ / _
/ |/ _ \ ## chp-liquibase_1 | ## | || | (| | || | | |) | (| __ \ / ## chp-liquibase_1 | ## _/|_, |_,||./ _,|/_| ## chp-liquibase_1 | ## | | ## chp-liquibase_1 | ## || ## chp-liquibase_1 | ## ## chp-liquibase_1 | ## Get documentation at docs.liquibase.com ## chp-liquibase_1 | ## Get certified courses at learn.liquibase.com ## chp-liquibase_1 | ## Free schema change activity reports at ## chp-liquibase_1 | ## https://hub.liquibase.com ## chp-liquibase_1 | ## ## chp-liquibase_1 | #################################################### chp-liquibase_1 | Starting Liquibase at 20:32:12 (version 4.7.0 #1140 built at 2022-01-07 19:26+0000) chp-liquibase_1 | Liquibase Version: 4.7.0 chp-liquibase_1 | Liquibase Community 4.7.0 by Liquibase chp-liquibase_1 | chp-liquibase_1 | Unexpected error running Liquibase: Validation Failed: chp-liquibase_1 | 1 changes have validation failures chp-liquibase_1 | Cannot specify clustered=true on mysql,
Expected/Desired Behavior
A clear and concise description of what happens in the software after a fix is created and merged.
Screenshots (if appropriate)
If applicable, add screenshots to help explain your problem.
Additional Context
Add any other context about the problem here.
Issue Analytics
- State:
- Created 2 years ago
- Comments:5 (2 by maintainers)
Top GitHub Comments
using 4.4.3 of liquibase allowed the update to complete so its most likely a bug in the validation logic
I cannot reproduce this issue:
I have executed update command with below changelog:
and it was executed successfully: