All Downloads are FREE. Search and download functionalities are using the official Maven repository.

liquibase.harness.data.changelogs.h2.loadData.xml Maven / Gradle / Ivy

There is a newer version: 1.0.10
Show newest version
<?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
         http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-4.3.xsd">
<!-- Attribute "usePreparedStatements" is set to false because otherwise we can't validate generated query.
Reason: Liquibase core class BatchDmlExecutablePreparedStatementGenerator.java doesn't have implementation -->
    <changeSet id="1" author="as">
        <loadData file="loadData.csv"
                  tableName="posts"
                  commentLineStartsWith="//"
                  quotchar="'"
                  relativeToChangelogFile="true"
                  separator=";"
                  usePreparedStatements="false">
            <column name="content" type="text"/>
        </loadData>
        <rollback>
            <delete tableName="posts">
                <where>id = 6</where>
            </delete>
            <delete tableName="posts">
                <where>id = 7</where>
            </delete>
            <delete tableName="posts">
                <where>id = 8</where>
            </delete>
        </rollback>
    </changeSet>
</databaseChangeLog>




© 2015 - 2024 Weber Informatics LLC | Privacy Policy