Is there a way to convert SQL queries to liquibase changelog format?

Belham picture Belham · Nov 12, 2018 · Viewed 8.8k times · Source

I would like to know if it is possible to convert an existing SQL script into XML format of changelogs of a liquibase?

Answer

Jens picture Jens · Nov 13, 2018

You could use a detour via a database. Apply your script to a database of choice (that is supported by liquibase). Then use generateChangeLog to generate the changelogs in xml from the database.