Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
Roll up addColumn and dropColumn changes for MySQL (CORE-1833) #315
See https://liquibase.jira.com/browse/CORE-1833 for details.
Currently the produced SQL for MySQL for the addColumn change is inefficient, if multiple columns are added at once. In that case, only one ALTER TABLE statement should be produced which can add the new columns in one go.
This implementation changes now AddColumnStatement and DropColumnStatement to maintain a list of columns to be added/dropped. No AlterTableStatement is introduced. AddColumnChange and DropColumnChange generate these "multiple column aware" statements.
referenced this pull request
Oct 10, 2014
Please help me with the following query -
I would like to know if the above change which generates "ALTER TABLEADD COLUMN1... , ADD COLUMN2.." is going to be part of the version 3.4.2 ? I am currently looking for this kind of solution from Liquibase as one of our customers are looking at adding multiple columns to a very big table in PostgreSQL using Liquibase. At this point, Liquibase generates ALTER TABLE statement one for each column addition. The above code change seems to be fixing that. Can i please know if this is going to be effective in PostgreSQL as well ? if yes, can you please help me when this is going to be released. Thanks in advance for your help !