I use Liquibase community 4.2.2 with PostgreSQL and all my database scripts that I deploy using liquibase are formatted SQL type files.
Eg :
–liquibase formatted sql
–changeset dinesh:facets_config_1
INSERT INTO public.facets_config_facet_fields_config VALUES (81922, 32776, 2);
INSERT INTO public.facets_config_facet_fields_config VALUES (81923, 655367, 2);
INSERT INTO public.facets_config_facet_fields_config VALUES (81923, 655368, 2);
INSERT INTO public.facets_config_facet_fields_config VALUES (81923, 655366, 2);
… and so on.
We usually have INSERT scripts inside the SQL files and we cannot explicitly mention rollback statements for each and every insert scripts since sometimes the number of insert scripts could be even more than 100+.
In this case if I use liquibase , Deploy the scripts and in case rollback to the previous tag, will liquibase auto generate the required rollback statements for the Insert Scripts ?