mirror of
https://github.com/traccar/traccar.git
synced 2025-01-07 03:07:01 +08:00
Drop foreign keys
This commit is contained in:
parent
b2126cf6af
commit
2d1b4aad57
31
schema/changelog-6.3.xml
Normal file
31
schema/changelog-6.3.xml
Normal 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>
|
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user