diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2015-12-19 10:04:10 +1300 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2015-12-19 10:04:10 +1300 |
commit | 3bb4c83e70e2898b20e3263c3700d15796caf4a6 (patch) | |
tree | 1028553914970261d5e4fd768e5ec45a003d20ce /database/db.changelog-3.2.xml | |
parent | 0c9eaf0eb81f08d3769d399184480f960fe4fee0 (diff) | |
download | trackermap-server-3bb4c83e70e2898b20e3263c3700d15796caf4a6.tar.gz trackermap-server-3bb4c83e70e2898b20e3263c3700d15796caf4a6.tar.bz2 trackermap-server-3bb4c83e70e2898b20e3263c3700d15796caf4a6.zip |
Retain non-null constraints on columns
Diffstat (limited to 'database/db.changelog-3.2.xml')
-rw-r--r-- | database/db.changelog-3.2.xml | 12 |
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" /> |