I would like to know if it is possible to convert an existing SQL script into XML format of changelogs of a liquibase?
Asked
Active
Viewed 1.7k times
11
-
2You can use the `
` tag and run your "SQL script" that way inside your liquid base changelog. Otherwise I don't know about any tools to convert plain SQL into changelog XML file. I also suggest you to taka a look at https://stackoverflow.com/questions/17063169/liquibase-xml-generator – Ivan Kaloyanov Nov 12 '18 at 16:37
1 Answers
5
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.

Jens
- 6,243
- 1
- 49
- 79