diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2018-10-10 11:30:48 +1300 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2018-10-10 11:30:48 +1300 |
commit | 6cfb503b400cbee3689cfb256a9779a024fe7f1d (patch) | |
tree | 4d1e179cdfd200e4f26290aaa02352a3ff17b814 /schema/changelog-4.0.xml | |
parent | 1264c4cec35c7e26aaaa32362bbf5ab3d97635aa (diff) | |
download | trackermap-server-6cfb503b400cbee3689cfb256a9779a024fe7f1d.tar.gz trackermap-server-6cfb503b400cbee3689cfb256a9779a024fe7f1d.tar.bz2 trackermap-server-6cfb503b400cbee3689cfb256a9779a024fe7f1d.zip |
Add clean 4.0 changelog (fix #4035)
Diffstat (limited to 'schema/changelog-4.0.xml')
-rw-r--r-- | schema/changelog-4.0.xml | 72 |
1 files changed, 44 insertions, 28 deletions
diff --git a/schema/changelog-4.0.xml b/schema/changelog-4.0.xml index d1944c4f5..337cdc884 100644 --- a/schema/changelog-4.0.xml +++ b/schema/changelog-4.0.xml @@ -54,8 +54,12 @@ </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> @@ -70,6 +74,9 @@ <preConditions onFail="MARK_RAN"> <not> + <tableExists tableName="tc_servers" /> + </not> + <not> <dbms type="postgresql" /> </not> <columnExists tableName="tc_notifications" columnName="web" /> @@ -78,38 +85,38 @@ </preConditions> <update tableName="tc_notifications"> - <column name="notificators" value="web,mail,sms" /> - <where>web = 1 AND mail = 1 AND sms = 1</where> + <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> + <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> + <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> + <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> + <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> + <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> + <column name="notificators" value="sms" /> + <where>web = 0 AND mail = 0 AND sms = 1</where> </update> </changeSet> @@ -117,6 +124,9 @@ <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" /> @@ -124,44 +134,50 @@ </preConditions> <update tableName="tc_notifications"> - <column name="notificators" value="web,mail,sms" /> - <where>web = TRUE AND mail = TRUE AND sms = TRUE</where> + <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> + <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> + <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> + <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> + <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> + <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> + <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" /> |