aboutsummaryrefslogtreecommitdiff
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
parentb2126cf6afe6203ea98fe99a1eeb303c62b8e909 (diff)
downloadtrackermap-server-2d1b4aad57da93d171170b2c63d9b6380bf59e44.tar.gz
trackermap-server-2d1b4aad57da93d171170b2c63d9b6380bf59e44.tar.bz2
trackermap-server-2d1b4aad57da93d171170b2c63d9b6380bf59e44.zip
Drop foreign keys
-rw-r--r--schema/changelog-6.3.xml31
-rw-r--r--schema/changelog-master.xml1
2 files changed, 32 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>
diff --git a/schema/changelog-master.xml b/schema/changelog-master.xml
index e9ae52569..3ce4b43e6 100644
--- a/schema/changelog-master.xml
+++ b/schema/changelog-master.xml
@@ -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>