Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to generate liquibase changelog with insert statement

I'm getting my hands on the Liquibase tool and I'd like to mimic working with an existing database. From the command line, I managed to generate the changelog. I was wondering whether it's possible to generate insert statements for data insides the tables?

like image 928
black sensei Avatar asked Jul 20 '10 14:07

black sensei


1 Answers

Yes. Use the --diffTypes="data" parameter output CSV files that are referenced from the generated changelog and will populate your database.

like image 198
Nathan Voxland Avatar answered Sep 21 '22 07:09

Nathan Voxland