aboutsummaryrefslogtreecommitdiff
path: root/schema/changelog-3.12.xml
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2018-10-10 11:30:48 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2018-10-10 11:30:48 +1300
commit6cfb503b400cbee3689cfb256a9779a024fe7f1d (patch)
tree4d1e179cdfd200e4f26290aaa02352a3ff17b814 /schema/changelog-3.12.xml
parent1264c4cec35c7e26aaaa32362bbf5ab3d97635aa (diff)
downloadtraccar-server-6cfb503b400cbee3689cfb256a9779a024fe7f1d.tar.gz
traccar-server-6cfb503b400cbee3689cfb256a9779a024fe7f1d.tar.bz2
traccar-server-6cfb503b400cbee3689cfb256a9779a024fe7f1d.zip
Add clean 4.0 changelog (fix #4035)
Diffstat (limited to 'schema/changelog-3.12.xml')
-rw-r--r--schema/changelog-3.12.xml20
1 files changed, 14 insertions, 6 deletions
diff --git a/schema/changelog-3.12.xml b/schema/changelog-3.12.xml
index 19c67cb36..0d8c8550f 100644
--- a/schema/changelog-3.12.xml
+++ b/schema/changelog-3.12.xml
@@ -8,6 +8,12 @@
<changeSet author="author" id="changelog-3.12">
+ <preConditions onFail="MARK_RAN">
+ <not>
+ <tableExists tableName="tc_servers" />
+ </not>
+ </preConditions>
+
<addColumn tableName="statistics">
<column name="mailsent" type="INT" defaultValueNumeric="0">
<constraints nullable="false" />
@@ -77,12 +83,6 @@
<addForeignKeyConstraint baseTableName="device_attribute" baseColumnNames="deviceid" constraintName="fk_device_attribute_deviceid" referencedTableName="devices" referencedColumnNames="id" onDelete="CASCADE" />
<addForeignKeyConstraint baseTableName="device_attribute" baseColumnNames="attributeid" constraintName="fk_device_attribute_attributeid" referencedTableName="attributes" referencedColumnNames="id" onDelete="CASCADE" />
- <!--<dropForeignKeyConstraint baseTableName="positions" constraintName="fk_position_deviceid" />
- <addForeignKeyConstraint baseTableName="positions" baseColumnNames="deviceid" constraintName="fk_positions_deviceid" referencedTableName="devices" referencedColumnNames="id" onDelete="CASCADE" />
-
- <dropForeignKeyConstraint baseTableName="events" constraintName="fk_event_deviceid" />
- <addForeignKeyConstraint baseTableName="events" baseColumnNames="deviceid" constraintName="fk_events_deviceid" referencedTableName="devices" referencedColumnNames="id" onDelete="CASCADE" />-->
-
<dropForeignKeyConstraint baseTableName="device_geofence" constraintName="fk_user_device_geofence_deviceid" />
<addForeignKeyConstraint baseTableName="device_geofence" baseColumnNames="deviceid" constraintName="fk_device_geofence_deviceid" referencedTableName="devices" referencedColumnNames="id" onDelete="CASCADE" />
<dropForeignKeyConstraint baseTableName="device_geofence" constraintName="fk_user_device_geofence_geofenceid" />
@@ -100,9 +100,13 @@
<preConditions onFail="MARK_RAN">
<not>
+ <tableExists tableName="tc_servers" />
+ </not>
+ <not>
<dbms type="mssql" />
</not>
</preConditions>
+
<dropForeignKeyConstraint baseTableName="groups" constraintName="fk_group_group_groupid" />
<addForeignKeyConstraint baseTableName="groups" baseColumnNames="groupid" constraintName="fk_groups_groupid" onDelete="SET NULL" onUpdate="RESTRICT" referencedColumnNames="id" referencedTableName="groups" />
@@ -111,9 +115,13 @@
<changeSet author="author" id="changelog-3.12-pgsql">
<preConditions onFail="MARK_RAN">
+ <not>
+ <tableExists tableName="tc_servers" />
+ </not>
<dbms type="postgresql" />
<sqlCheck expectedResult="oid">SELECT data_type FROM information_schema.columns WHERE table_name = 'calendars' AND column_name = 'data';</sqlCheck>
</preConditions>
+
<dropColumn tableName="calendars" columnName="data" />
<addColumn tableName="calendars">
<column name="data" type="bytea">