Quantcast
Channel: Liquibase Forums
Viewing all articles
Browse latest Browse all 2993

LiquiBase adding multiple columns in PostgreSQL

$
0
0
Hello there,

I am yet to use/implement LiquiBase tool for our PostgreSQL databases. One question i have is -

Can LiquiBase be used to add multiple columns part of one changeset all at a time generating a one single "ALTER TABLE" command ?

Meaning - If i wish to add 3 columns to a table, then the following command must be applied as an SQL to the database

ALTER TABLE TEST ADD COLUMN <COL1 DATA-TYPE>, ADD COLUMN <COL2 DATA-TYPE>, ADD COLUMN <COL3 DATA-TYPE>;

What i understand is that, liquibase generates 3 individual "ALTER TABLE" commands - please correct me if i am wrong. I would like to know if it is possible to do something similar to the above 

Thanks in advance !


Viewing all articles
Browse latest Browse all 2993

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>