aboutsummaryrefslogtreecommitdiff
path: root/schema/changelog-6.3.xml
diff options
context:
space:
mode:
authorAnton Tananaev <anton@traccar.org>2024-07-13 08:55:33 -0700
committerAnton Tananaev <anton@traccar.org>2024-07-13 08:55:33 -0700
commit2d1b4aad57da93d171170b2c63d9b6380bf59e44 (patch)
tree44008baeb3d98366e9ff1fe71da5256858344cb6 /schema/changelog-6.3.xml
parentb2126cf6afe6203ea98fe99a1eeb303c62b8e909 (diff)
downloadtrackermap-server-2d1b4aad57da93d171170b2c63d9b6380bf59e44.tar.gz
trackermap-server-2d1b4aad57da93d171170b2c63d9b6380bf59e44.tar.bz2
trackermap-server-2d1b4aad57da93d171170b2c63d9b6380bf59e44.zip
Drop foreign keys
Diffstat (limited to 'schema/changelog-6.3.xml')
-rw-r--r--schema/changelog-6.3.xml31
1 files changed, 31 insertions, 0 deletions
diff --git a/schema/changelog-6.3.xml b/schema/changelog-6.3.xml
new file mode 100644
index 000000000..c987a7315
--- /dev/null
+++ b/schema/changelog-6.3.xml
@@ -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>