aboutsummaryrefslogtreecommitdiff
path: root/schema/changelog-3.10.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.10.xml
parent1264c4cec35c7e26aaaa32362bbf5ab3d97635aa (diff)
downloadtrackermap-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.10.xml')
-rw-r--r--schema/changelog-3.10.xml22
1 files changed, 20 insertions, 2 deletions
diff --git a/schema/changelog-3.10.xml b/schema/changelog-3.10.xml
index 4c64373e9..6d4fa634c 100644
--- a/schema/changelog-3.10.xml
+++ b/schema/changelog-3.10.xml
@@ -8,6 +8,12 @@
<changeSet author="author" id="changelog-3.10">
+ <preConditions onFail="MARK_RAN">
+ <not>
+ <tableExists tableName="tc_servers" />
+ </not>
+ </preConditions>
+
<createTable tableName="calendars">
<column name="id" type="INT" autoIncrement="true">
<constraints primaryKey="true" />
@@ -64,8 +70,8 @@
<addForeignKeyConstraint baseTableName="user_user" baseColumnNames="userid" constraintName="fk_user_user_userid" referencedTableName="users" referencedColumnNames="id" onDelete="CASCADE" />
<update tableName="users">
- <column name="devicelimit" valueNumeric="-1" />
- <where>devicelimit = 0</where>
+ <column name="devicelimit" valueNumeric="-1" />
+ <where>devicelimit = 0</where>
</update>
<dropDefaultValue tableName="users" columnName="devicelimit" />
<addDefaultValue tableName="users" columnName="devicelimit" defaultValueNumeric="-1" />
@@ -80,9 +86,13 @@
<preConditions onFail="MARK_RAN">
<not>
+ <tableExists tableName="tc_servers" />
+ </not>
+ <not>
<dbms type="mssql" />
</not>
</preConditions>
+
<addForeignKeyConstraint baseTableName="user_user" baseColumnNames="manageduserid" constraintName="fk_user_user_manageduserid" referencedTableName="users" referencedColumnNames="id" onDelete="CASCADE" />
</changeSet>
@@ -90,8 +100,12 @@
<changeSet author="author" id="changelog-3.10-mssql">
<preConditions onFail="MARK_RAN">
+ <not>
+ <tableExists tableName="tc_servers" />
+ </not>
<dbms type="mssql" />
</preConditions>
+
<sql>
CREATE TRIGGER tg_users_delete
ON users FOR DELETE
@@ -105,8 +119,12 @@
<changeSet author="author" id="changelog-3.7-mssql">
<preConditions onFail="MARK_RAN">
+ <not>
+ <tableExists tableName="tc_servers" />
+ </not>
<dbms type="mssql" />
</preConditions>
+
<sql>
CREATE TRIGGER tg_groups_delete
ON groups FOR DELETE