Drop foreign keys

This commit is contained in:
Anton Tananaev 2024-07-13 08:55:33 -07:00
parent b2126cf6af
commit 2d1b4aad57
2 changed files with 32 additions and 0 deletions

31
schema/changelog-6.3.xml Normal file
View File

@ -0,0 +1,31 @@
<?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.4.xsd"
logicalFilePath="changelog-6.3">
<changeSet author="author" id="changelog-6.3-old">
<preConditions onFail="MARK_RAN">
<foreignKeyConstraintExists foreignKeyTableName="tc_events" foreignKeyName="fk_event_deviceid" />
</preConditions>
<dropForeignKeyConstraint baseTableName="tc_events" constraintName="fk_event_deviceid" />
<dropForeignKeyConstraint baseTableName="tc_positions" constraintName="fk_position_deviceid" />
</changeSet>
<changeSet author="author" id="changelog-6.3-new">
<preConditions onFail="MARK_RAN">
<foreignKeyConstraintExists foreignKeyTableName="tc_events" foreignKeyName="fk_events_deviceid" />
</preConditions>
<dropForeignKeyConstraint baseTableName="tc_events" constraintName="fk_events_deviceid" />
<dropForeignKeyConstraint baseTableName="tc_positions" constraintName="fk_positions_deviceid" />
</changeSet>
</databaseChangeLog>

View File

@ -44,5 +44,6 @@
<include file="changelog-5.11.xml" relativeToChangelogFile="true" />
<include file="changelog-6.2.xml" relativeToChangelogFile="true" />
<include file="changelog-6.3.xml" relativeToChangelogFile="true" />
</databaseChangeLog>