aboutsummaryrefslogtreecommitdiff
path: root/database/db.changelog-3.2.xml
diff options
context:
space:
mode:
Diffstat (limited to 'database/db.changelog-3.2.xml')
-rw-r--r--database/db.changelog-3.2.xml12
1 files changed, 12 insertions, 0 deletions
diff --git a/database/db.changelog-3.2.xml b/database/db.changelog-3.2.xml
index bcf20c860..015c71588 100644
--- a/database/db.changelog-3.2.xml
+++ b/database/db.changelog-3.2.xml
@@ -13,17 +13,25 @@
</not>
</preConditions>
+ <dropNotNullConstraint tableName="user" columnName="latitude" />
<dropDefaultValue tableName="user" columnName="latitude" />
<modifyDataType tableName="user" columnName="latitude" newDataType="DOUBLE" />
+ <addNotNullConstraint tableName="user" columnName="latitude" />
<addDefaultValue tableName="user" columnName="latitude" defaultValueNumeric="0" />
+ <dropNotNullConstraint tableName="user" columnName="longitude" />
<dropDefaultValue tableName="user" columnName="longitude" />
<modifyDataType tableName="user" columnName="longitude" newDataType="DOUBLE" />
+ <addNotNullConstraint tableName="user" columnName="longitude" />
<addDefaultValue tableName="user" columnName="longitude" defaultValueNumeric="0" />
<dropColumn tableName="device" columnName="dataId" />
+ <dropNotNullConstraint tableName="position" columnName="latitude" />
<modifyDataType tableName="position" columnName="latitude" newDataType="DOUBLE" />
+ <addNotNullConstraint tableName="position" columnName="latitude" />
+ <dropNotNullConstraint tableName="position" columnName="longitude" />
<modifyDataType tableName="position" columnName="longitude" newDataType="DOUBLE" />
+ <addNotNullConstraint tableName="position" columnName="longitude" />
<renameColumn tableName="position" oldColumnName="other" newColumnName="attributes" columnDataType="VARCHAR(4096)" />
<dropTable tableName="data" />
@@ -34,8 +42,12 @@
<addColumn tableName="server">
<column name="mapUrl" type="VARCHAR(128)" />
</addColumn>
+ <dropNotNullConstraint tableName="server" columnName="latitude" />
<modifyDataType tableName="server" columnName="latitude" newDataType="DOUBLE" />
+ <addNotNullConstraint tableName="server" columnName="latitude" />
+ <dropNotNullConstraint tableName="server" columnName="longitude" />
<modifyDataType tableName="server" columnName="longitude" newDataType="DOUBLE" />
+ <addNotNullConstraint tableName="server" columnName="longitude" />
<update tableName="traccar">
<column name="version" valueNumeric="302" />