Vivek Singh
Dec 20, 2022

--

Also, you can check my Git Project based on this article :

https://github.com/Viveksingh1313/liquibase-springboot/blob/dev/src/main/resources/dblogs/changelog/changes/1-create-info-table-changelog.sql

I am creating a table and rolling it back in case of any error during creation in above example.

A better used case to get you started - You can have multiple sql statements instead of just one - like creating a table, creating primary keys, and then also inserting data into the table. If any of the statements fail, you can drop the table as a rollback step.

The above link has the usage of rollback. It's very minimal and basic. Not sure if it would help your use case , however looks like a good starting point.

--

--

Vivek Singh

Software Developer. I write about Full Stack, NLP and Blockchain. Buy me a coffee - buymeacoffee.com/viveksinless