mirror of
https://github.com/traccar/traccar.git
synced 2025-01-07 03:07:01 +08:00
Fix issue in changelog file
This commit is contained in:
parent
6f03d2da1b
commit
3c4bad1bf1
@ -6,6 +6,142 @@
|
||||
http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.4.xsd"
|
||||
logicalFilePath="changelog-4.0">
|
||||
|
||||
<changeSet author="author" id="changelog-4.0-pre">
|
||||
|
||||
<preConditions onFail="MARK_RAN">
|
||||
<not>
|
||||
<tableExists tableName="tc_servers" />
|
||||
</not>
|
||||
<not>
|
||||
<columnExists tableName="notifications" columnName="notificators" />
|
||||
</not>
|
||||
</preConditions>
|
||||
|
||||
<addColumn tableName="notifications">
|
||||
<column name="notificators" type="VARCHAR(128)" />
|
||||
</addColumn>
|
||||
|
||||
</changeSet>
|
||||
|
||||
<changeSet author="author" id="changelog-4.0-common">
|
||||
|
||||
<preConditions onFail="MARK_RAN">
|
||||
<not>
|
||||
<tableExists tableName="tc_servers" />
|
||||
</not>
|
||||
<not>
|
||||
<dbms type="postgresql" />
|
||||
</not>
|
||||
<columnExists tableName="notifications" columnName="web" />
|
||||
<columnExists tableName="notifications" columnName="mail" />
|
||||
<columnExists tableName="notifications" columnName="sms" />
|
||||
</preConditions>
|
||||
|
||||
<update tableName="notifications">
|
||||
<column name="notificators" value="web,mail,sms" />
|
||||
<where>web = 1 AND mail = 1 AND sms = 1</where>
|
||||
</update>
|
||||
|
||||
<update tableName="notifications">
|
||||
<column name="notificators" value="web,mail" />
|
||||
<where>web = 1 AND mail = 1 AND sms = 0</where>
|
||||
</update>
|
||||
|
||||
<update tableName="notifications">
|
||||
<column name="notificators" value="web" />
|
||||
<where>web = 1 AND mail = 0 AND sms = 0</where>
|
||||
</update>
|
||||
|
||||
<update tableName="notifications">
|
||||
<column name="notificators" value="web,sms" />
|
||||
<where>web = 1 AND mail = 0 AND sms = 1</where>
|
||||
</update>
|
||||
|
||||
<update tableName="notifications">
|
||||
<column name="notificators" value="mail,sms" />
|
||||
<where>web = 0 AND mail = 1 AND sms = 1</where>
|
||||
</update>
|
||||
|
||||
<update tableName="notifications">
|
||||
<column name="notificators" value="mail" />
|
||||
<where>web = 0 AND mail = 1 AND sms = 0</where>
|
||||
</update>
|
||||
|
||||
<update tableName="notifications">
|
||||
<column name="notificators" value="sms" />
|
||||
<where>web = 0 AND mail = 0 AND sms = 1</where>
|
||||
</update>
|
||||
|
||||
</changeSet>
|
||||
|
||||
<changeSet author="author" id="changelog-4.0-pg">
|
||||
|
||||
<preConditions onFail="MARK_RAN">
|
||||
<not>
|
||||
<tableExists tableName="tc_servers" />
|
||||
</not>
|
||||
<dbms type="postgresql" />
|
||||
<columnExists tableName="tc_notifications" columnName="web" />
|
||||
<columnExists tableName="tc_notifications" columnName="mail" />
|
||||
<columnExists tableName="tc_notifications" columnName="sms" />
|
||||
</preConditions>
|
||||
|
||||
<update tableName="notifications">
|
||||
<column name="notificators" value="web,mail,sms" />
|
||||
<where>web = TRUE AND mail = TRUE AND sms = TRUE</where>
|
||||
</update>
|
||||
|
||||
<update tableName="notifications">
|
||||
<column name="notificators" value="web,mail" />
|
||||
<where>web = TRUE AND mail = TRUE AND sms = FALSE</where>
|
||||
</update>
|
||||
|
||||
<update tableName="notifications">
|
||||
<column name="notificators" value="web" />
|
||||
<where>web = TRUE AND mail = FALSE AND sms = FALSE</where>
|
||||
</update>
|
||||
|
||||
<update tableName="notifications">
|
||||
<column name="notificators" value="web,sms" />
|
||||
<where>web = TRUE AND mail = FALSE AND sms = TRUE</where>
|
||||
</update>
|
||||
|
||||
<update tableName="notifications">
|
||||
<column name="notificators" value="mail,sms" />
|
||||
<where>web = FALSE AND mail = TRUE AND sms = TRUE</where>
|
||||
</update>
|
||||
|
||||
<update tableName="notifications">
|
||||
<column name="notificators" value="mail" />
|
||||
<where>web = FALSE AND mail = TRUE AND sms = FALSE</where>
|
||||
</update>
|
||||
|
||||
<update tableName="notifications">
|
||||
<column name="notificators" value="sms" />
|
||||
<where>web = FALSE AND mail = FALSE AND sms = TRUE</where>
|
||||
</update>
|
||||
|
||||
</changeSet>
|
||||
|
||||
<changeSet author="author" id="changelog-4.0">
|
||||
|
||||
<preConditions onFail="MARK_RAN">
|
||||
<not>
|
||||
<tableExists tableName="tc_servers" />
|
||||
</not>
|
||||
</preConditions>
|
||||
|
||||
<dropDefaultValue tableName="notifications" columnName="web" />
|
||||
<dropColumn tableName="notifications" columnName="web" />
|
||||
|
||||
<dropDefaultValue tableName="notifications" columnName="mail" />
|
||||
<dropColumn tableName="notifications" columnName="mail" />
|
||||
|
||||
<dropDefaultValue tableName="notifications" columnName="sms" />
|
||||
<dropColumn tableName="notifications" columnName="sms" />
|
||||
|
||||
</changeSet>
|
||||
|
||||
<changeSet author="author" id="changelog-4.0-renaming">
|
||||
|
||||
<preConditions onFail="MARK_RAN">
|
||||
@ -53,140 +189,4 @@
|
||||
|
||||
</changeSet>
|
||||
|
||||
<changeSet author="author" id="changelog-4.0-pre">
|
||||
|
||||
<preConditions onFail="MARK_RAN">
|
||||
<not>
|
||||
<tableExists tableName="tc_servers" />
|
||||
</not>
|
||||
<not>
|
||||
<columnExists tableName="tc_notifications" columnName="notificators" />
|
||||
</not>
|
||||
</preConditions>
|
||||
|
||||
<addColumn tableName="tc_notifications">
|
||||
<column name="notificators" type="VARCHAR(128)" />
|
||||
</addColumn>
|
||||
|
||||
</changeSet>
|
||||
|
||||
<changeSet author="author" id="changelog-4.0-common">
|
||||
|
||||
<preConditions onFail="MARK_RAN">
|
||||
<not>
|
||||
<tableExists tableName="tc_servers" />
|
||||
</not>
|
||||
<not>
|
||||
<dbms type="postgresql" />
|
||||
</not>
|
||||
<columnExists tableName="tc_notifications" columnName="web" />
|
||||
<columnExists tableName="tc_notifications" columnName="mail" />
|
||||
<columnExists tableName="tc_notifications" columnName="sms" />
|
||||
</preConditions>
|
||||
|
||||
<update tableName="tc_notifications">
|
||||
<column name="notificators" value="web,mail,sms" />
|
||||
<where>web = 1 AND mail = 1 AND sms = 1</where>
|
||||
</update>
|
||||
|
||||
<update tableName="tc_notifications">
|
||||
<column name="notificators" value="web,mail" />
|
||||
<where>web = 1 AND mail = 1 AND sms = 0</where>
|
||||
</update>
|
||||
|
||||
<update tableName="tc_notifications">
|
||||
<column name="notificators" value="web" />
|
||||
<where>web = 1 AND mail = 0 AND sms = 0</where>
|
||||
</update>
|
||||
|
||||
<update tableName="tc_notifications">
|
||||
<column name="notificators" value="web,sms" />
|
||||
<where>web = 1 AND mail = 0 AND sms = 1</where>
|
||||
</update>
|
||||
|
||||
<update tableName="tc_notifications">
|
||||
<column name="notificators" value="mail,sms" />
|
||||
<where>web = 0 AND mail = 1 AND sms = 1</where>
|
||||
</update>
|
||||
|
||||
<update tableName="tc_notifications">
|
||||
<column name="notificators" value="mail" />
|
||||
<where>web = 0 AND mail = 1 AND sms = 0</where>
|
||||
</update>
|
||||
|
||||
<update tableName="tc_notifications">
|
||||
<column name="notificators" value="sms" />
|
||||
<where>web = 0 AND mail = 0 AND sms = 1</where>
|
||||
</update>
|
||||
|
||||
</changeSet>
|
||||
|
||||
<changeSet author="author" id="changelog-4.0-pg">
|
||||
|
||||
<preConditions onFail="MARK_RAN">
|
||||
<not>
|
||||
<tableExists tableName="tc_servers" />
|
||||
</not>
|
||||
<dbms type="postgresql" />
|
||||
<columnExists tableName="tc_notifications" columnName="web" />
|
||||
<columnExists tableName="tc_notifications" columnName="mail" />
|
||||
<columnExists tableName="tc_notifications" columnName="sms" />
|
||||
</preConditions>
|
||||
|
||||
<update tableName="tc_notifications">
|
||||
<column name="notificators" value="web,mail,sms" />
|
||||
<where>web = TRUE AND mail = TRUE AND sms = TRUE</where>
|
||||
</update>
|
||||
|
||||
<update tableName="tc_notifications">
|
||||
<column name="notificators" value="web,mail" />
|
||||
<where>web = TRUE AND mail = TRUE AND sms = FALSE</where>
|
||||
</update>
|
||||
|
||||
<update tableName="tc_notifications">
|
||||
<column name="notificators" value="web" />
|
||||
<where>web = TRUE AND mail = FALSE AND sms = FALSE</where>
|
||||
</update>
|
||||
|
||||
<update tableName="tc_notifications">
|
||||
<column name="notificators" value="web,sms" />
|
||||
<where>web = TRUE AND mail = FALSE AND sms = TRUE</where>
|
||||
</update>
|
||||
|
||||
<update tableName="tc_notifications">
|
||||
<column name="notificators" value="mail,sms" />
|
||||
<where>web = FALSE AND mail = TRUE AND sms = TRUE</where>
|
||||
</update>
|
||||
|
||||
<update tableName="tc_notifications">
|
||||
<column name="notificators" value="mail" />
|
||||
<where>web = FALSE AND mail = TRUE AND sms = FALSE</where>
|
||||
</update>
|
||||
|
||||
<update tableName="tc_notifications">
|
||||
<column name="notificators" value="sms" />
|
||||
<where>web = FALSE AND mail = FALSE AND sms = TRUE</where>
|
||||
</update>
|
||||
|
||||
</changeSet>
|
||||
|
||||
<changeSet author="author" id="changelog-4.0">
|
||||
|
||||
<preConditions onFail="MARK_RAN">
|
||||
<not>
|
||||
<tableExists tableName="tc_servers" />
|
||||
</not>
|
||||
</preConditions>
|
||||
|
||||
<dropDefaultValue tableName="tc_notifications" columnName="web" />
|
||||
<dropColumn tableName="tc_notifications" columnName="web" />
|
||||
|
||||
<dropDefaultValue tableName="tc_notifications" columnName="mail" />
|
||||
<dropColumn tableName="tc_notifications" columnName="mail" />
|
||||
|
||||
<dropDefaultValue tableName="tc_notifications" columnName="sms" />
|
||||
<dropColumn tableName="tc_notifications" columnName="sms" />
|
||||
|
||||
</changeSet>
|
||||
|
||||
</databaseChangeLog>
|
||||
|
Loading…
Reference in New Issue
Block a user