liquibase.harness.change.changelogs.cockroachdb.20.1.dropForeignKey.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 http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.8.xsd"> <changeSet author="oleh" id="1"> <createIndex indexName="author_id_idx" tableName="posts" unique="false"> <column descending="false" name="author_id"/> </createIndex> <addForeignKeyConstraint baseColumnNames="author_id" baseTableName="posts" constraintName="fk_posts_authors_test" onDelete="CASCADE" onUpdate="RESTRICT" referencedColumnNames="id" referencedTableName="authors" validate="true"/> <dropForeignKeyConstraint baseTableName="posts" constraintName="fk_posts_authors_test"/> <dropIndex tableName="posts" indexName="author_id_idx" /> <rollback/> </changeSet> </databaseChangeLog>
© 2015 - 2024 Weber Informatics LLC | Privacy Policy