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

liquibase.harness.data.changelogs.hsqldb.loadUpdateData.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">
    <changeSet id="1" author="as">
<!--        Timestamp dataType is different in HSQL - no `T` char between date and time-->
        <loadUpdateData file="loadUpdateData.csv"
                        relativeToChangelogFile="true"
                        quotchar="'"
                        separator=";"
                        tableName="authors"
                        primaryKey="id">
        </loadUpdateData>
        <rollback>
            <sql splitStatements="true">
                DELETE FROM authors WHERE id = 1;
                INSERT INTO authors VALUES ('1','Eileen','Lubowitz','[email protected]','1991-03-04','2004-05-30 02:08:25');
                DELETE FROM authors WHERE id = 7;
                DELETE FROM authors WHERE id = 8;
            </sql>
        </rollback>
    </changeSet>
</databaseChangeLog>




© 2015 - 2024 Weber Informatics LLC | Privacy Policy