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

liquibase.harness.change.changelogs.postgresql.dropAllForeignKeysMixedCaseTablesWithProKey.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-3.8.xsd">
    <changeSet id="1" author="as">
        <createTable tableName="MixedCase1">
            <column name="id" type="INT">
                <constraints primaryKey="true"/>
            </column>
        </createTable>
    </changeSet>

    <changeSet id="2" author="as">
        <createTable tableName="MixedCase2">
            <column name="id" type="INT"/>
            <column name="ref_id" type="INT">
                <constraints foreignKeyName="fk_mixed" referencedTableName="MixedCase1" referencedColumnNames="id"/>
            </column>
        </createTable>
    </changeSet>

    <changeSet id="3" author="as">
        <dropAllForeignKeyConstraints baseTableName="MixedCase2"/>
        <rollback/>
    </changeSet>
</databaseChangeLog>




© 2015 - 2024 Weber Informatics LLC | Privacy Policy