11

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

Dharman
  • 30,962
  • 25
  • 85
  • 135
Belham
  • 155
  • 1
  • 1
  • 12
  • 2
    You 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 Answers1

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