aboutsummaryrefslogtreecommitdiff
path: root/schema/changelog-3.8.xml
diff options
context:
space:
mode:
Diffstat (limited to 'schema/changelog-3.8.xml')
-rw-r--r--schema/changelog-3.8.xml17
1 files changed, 9 insertions, 8 deletions
diff --git a/schema/changelog-3.8.xml b/schema/changelog-3.8.xml
index 120ddf5cc..aeed32888 100644
--- a/schema/changelog-3.8.xml
+++ b/schema/changelog-3.8.xml
@@ -8,6 +8,12 @@
<changeSet author="author" id="changelog-3.8">
+ <preConditions onFail="MARK_RAN">
+ <not>
+ <tableExists tableName="tc_servers" />
+ </not>
+ </preConditions>
+
<createTable tableName="attribute_aliases">
<column name="id" type="INT" autoIncrement="true">
<constraints primaryKey="true" />
@@ -27,15 +33,15 @@
<addUniqueConstraint tableName="attribute_aliases" columnNames="deviceid, attribute" constraintName="uk_deviceid_attribute" />
<update tableName="users">
- <column name="map" type="VARCHAR(128)"/>
+ <column name="map" type="VARCHAR(128)" />
<where>map = 'osm'</where>
</update>
<update tableName="users">
- <column name="distanceunit" type="VARCHAR(128)"/>
+ <column name="distanceunit" type="VARCHAR(128)" />
<where>distanceunit = 'km'</where>
</update>
<update tableName="users">
- <column name="speedunit" type="VARCHAR(128)"/>
+ <column name="speedunit" type="VARCHAR(128)" />
<where>speedunit = 'kmh'</where>
</update>
@@ -122,9 +128,4 @@
</changeSet>
- <changeSet author="author" id="changelog-3.8-dropuniquetoken" failOnError="false">
-
- <dropUniqueConstraint tableName="users" uniqueColumns="token" constraintName="uk_user_token" />
-
- </changeSet>
</databaseChangeLog>