diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2015-12-19 10:34:33 +1300 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2015-12-19 10:34:33 +1300 |
commit | 33f46f13f06f9a543556eb1c5ecd100f2876719c (patch) | |
tree | 815122c46923171568bbe5bb3d5ac876a1ac502c /database/db.changelog-3.2.xml | |
parent | 7c8a992ef50c105964345f94f45cbf4adc567068 (diff) | |
download | trackermap-server-33f46f13f06f9a543556eb1c5ecd100f2876719c.tar.gz trackermap-server-33f46f13f06f9a543556eb1c5ecd100f2876719c.tar.bz2 trackermap-server-33f46f13f06f9a543556eb1c5ecd100f2876719c.zip |
Fix more contraints and default values
Diffstat (limited to 'database/db.changelog-3.2.xml')
-rw-r--r-- | database/db.changelog-3.2.xml | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/database/db.changelog-3.2.xml b/database/db.changelog-3.2.xml index 750e91dc8..a1fc19b06 100644 --- a/database/db.changelog-3.2.xml +++ b/database/db.changelog-3.2.xml @@ -32,7 +32,9 @@ <dropNotNullConstraint tableName="position" columnName="longitude" columnDataType="FLOAT" /> <modifyDataType tableName="position" columnName="longitude" newDataType="DOUBLE" /> <addNotNullConstraint tableName="position" columnName="longitude" columnDataType="DOUBLE" /> + <dropNotNullConstraint tableName="position" columnName="other" columnDataType="VARCHAR(4096)" /> <renameColumn tableName="position" oldColumnName="other" newColumnName="attributes" columnDataType="VARCHAR(4096)" /> + <addNotNullConstraint tableName="position" columnName="attributes" columnDataType="VARCHAR(4096)" /> <dropTable tableName="data" /> @@ -45,9 +47,11 @@ <dropNotNullConstraint tableName="server" columnName="latitude" columnDataType="FLOAT" /> <modifyDataType tableName="server" columnName="latitude" newDataType="DOUBLE" /> <addNotNullConstraint tableName="server" columnName="latitude" columnDataType="DOUBLE" /> + <addDefaultValue tableName="server" columnName="latitude" defaultValueNumeric="0" /> <dropNotNullConstraint tableName="server" columnName="longitude" columnDataType="FLOAT" /> <modifyDataType tableName="server" columnName="longitude" newDataType="DOUBLE" /> <addNotNullConstraint tableName="server" columnName="longitude" columnDataType="DOUBLE" /> + <addDefaultValue tableName="server" columnName="longitude" defaultValueNumeric="0" /> <update tableName="traccar"> <column name="version" valueNumeric="302" /> |