liquibase.V202206022345-insert-into-messages.xml Maven / Gradle / Ivy
<?xml version="1.0" encoding="UTF-8"?> <databaseChangeLog xmlns="http://www.liquibase.org/xml/ns/dbchangelog" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog https://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-4.9.xsd"> <changeSet id="V202206022345" author="Maksim Kostromin"> <comment>Insert test data into `messages` table with rollback</comment> <insert tableName="messages"> <column name="id" value="-1"/> <column name="body" value="Hello, all!"/> </insert> <insert tableName="messages"> <column name="id" value="0"/> <column name="body" value="Hello, World!"/> </insert> <rollback> <delete tableName="messages"> <where>id in (-1, 0)</where> </delete> </rollback> </changeSet> </databaseChangeLog>