Belham
Belham

Reputation: 165

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

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

Upvotes: 11

Views: 20506

Answers (1)

Jens
Jens

Reputation: 6383

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.

Upvotes: 5

Related Questions