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-3.7.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-3.7.xml')
-rw-r--r-- | schema/changelog-3.7.xml | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/schema/changelog-3.7.xml b/schema/changelog-3.7.xml index 1bae2aaff..1d1cdbaac 100644 --- a/schema/changelog-3.7.xml +++ b/schema/changelog-3.7.xml @@ -8,6 +8,12 @@ <changeSet author="author" id="changelog-3.7"> + <preConditions onFail="MARK_RAN"> + <not> + <tableExists tableName="tc_servers" /> + </not> + </preConditions> + <update tableName="devices"> <column name="groupid"/> <where>groupid NOT IN (SELECT id FROM groups)</where> @@ -42,10 +48,15 @@ <preConditions onFail="MARK_RAN"> <not> + <tableExists tableName="tc_servers" /> + </not> + <not> <dbms type="mssql" /> </not> </preConditions> + <addForeignKeyConstraint baseColumnNames="groupid" baseTableName="groups" constraintName="fk_group_group_groupid" onDelete="SET NULL" onUpdate="RESTRICT" referencedColumnNames="id" referencedTableName="groups"/> </changeSet> + </databaseChangeLog> |