generateChangeLog does not create auto_increment correct with its unique key

Hi,


when using auto_increment (MySQL) in a column, the generateChangeLog splits the column- and the key-generation in 2 different change sets. That causes an error on migration:

“Incorrect table definition; there can be only one auto column and it must be defined as a key”


Dominik

What liquibase version are you using?

Nathan

Liquibase Version: 3.0.7

It works with my testing. Is it a multi-column primary key with one of them auto-increment? Can you send an example chagneSet?


Nathan

Added an example in a bug-report: CORE-1652 - generateChangeLog does not create auto_increment correct with its unique key

Thanks, I’ll take a look.


Nathan