aboutsummaryrefslogtreecommitdiff
path: root/schema
diff options
context:
space:
mode:
authorAbyss777 <abyss@fox5.ru>2018-06-26 09:22:22 +0500
committerAbyss777 <abyss@fox5.ru>2018-06-26 09:22:22 +0500
commitaba402226403f8b3eb58cc01e8f536eb4104d35a (patch)
treeec884994ad90365fa9b385465a80391606f6d970 /schema
parentc700bfdb66071ba224ddf01e9827e721562fed7a (diff)
parent575deac9e2df1cbd0601328f7ea7a9f22029fa43 (diff)
downloadtrackermap-server-aba402226403f8b3eb58cc01e8f536eb4104d35a.tar.gz
trackermap-server-aba402226403f8b3eb58cc01e8f536eb4104d35a.tar.bz2
trackermap-server-aba402226403f8b3eb58cc01e8f536eb4104d35a.zip
Merge remote-tracking branch 'ivanfmartinez/notifications'
# Conflicts: # src/org/traccar/Context.java
Diffstat (limited to 'schema')
-rw-r--r--schema/changelog-3.18.xml57
1 files changed, 57 insertions, 0 deletions
diff --git a/schema/changelog-3.18.xml b/schema/changelog-3.18.xml
new file mode 100644
index 000000000..85c3b0c33
--- /dev/null
+++ b/schema/changelog-3.18.xml
@@ -0,0 +1,57 @@
+<?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-3.18">
+
+ <changeSet author="author" id="changelog-3.18">
+
+ <addColumn tableName="notifications">
+ <column name="transports" type="VARCHAR(128)" />
+ </addColumn>
+
+ <update tableName="notifications">
+ <column name="transports" value="web, mail, sms" />
+ <where>web = 1 AND mail = 1 AND sms = 1</where>
+ </update>
+
+ <update tableName="notifications">
+ <column name="transports" value="web, mail" />
+ <where>web = 1 AND mail = 1 AND sms = 0</where>
+ </update>
+
+ <update tableName="notifications">
+ <column name="transports" value="web" />
+ <where>web = 1 AND mail = 0 AND sms = 0</where>
+ </update>
+
+ <update tableName="notifications">
+ <column name="transports" value="web, sms" />
+ <where>web = 1 AND mail = 0 AND sms = 1</where>
+ </update>
+
+ <update tableName="notifications">
+ <column name="transports" value="mail, sms" />
+ <where>web = 0 AND mail = 1 AND sms = 1</where>
+ </update>
+
+ <update tableName="notifications">
+ <column name="transports" value="mail" />
+ <where>web = 0 AND mail = 1 AND sms = 0</where>
+ </update>
+
+ <update tableName="notifications">
+ <column name="transports" value="sms" />
+ <where>web = 0 AND mail = 0 AND sms = 1</where>
+ </update>
+
+ <!--
+ <dropColumn tableName="notifications" columnName="web" />
+ <dropColumn tableName="notifications" columnName="mail" />
+ <dropColumn tableName="notifications" columnName="sms" />
+ -->
+
+ </changeSet>
+</databaseChangeLog>