diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2015-12-18 23:01:48 +1300 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2015-12-18 23:01:48 +1300 |
commit | 1f8ce82459bce2bd7bfe0726c3ec31010b58ab33 (patch) | |
tree | d439dd4daaf85bc9a25fbabf1e123f90a1229029 /database/db.changelog-3.1.xml | |
parent | 8aecb79dddd40fc5b5a2cbb390c8a1f108f28265 (diff) | |
download | trackermap-server-1f8ce82459bce2bd7bfe0726c3ec31010b58ab33.tar.gz trackermap-server-1f8ce82459bce2bd7bfe0726c3ec31010b58ab33.tar.bz2 trackermap-server-1f8ce82459bce2bd7bfe0726c3ec31010b58ab33.zip |
Fix some MySQL database changelog issues
Diffstat (limited to 'database/db.changelog-3.1.xml')
-rw-r--r-- | database/db.changelog-3.1.xml | 19 |
1 files changed, 7 insertions, 12 deletions
diff --git a/database/db.changelog-3.1.xml b/database/db.changelog-3.1.xml index 589356863..db171e6a8 100644 --- a/database/db.changelog-3.1.xml +++ b/database/db.changelog-3.1.xml @@ -41,11 +41,6 @@ <modifyDataType tableName="device" columnName="name" newDataType="VARCHAR(128)" /> <modifyDataType tableName="device" columnName="uniqueId" newDataType="VARCHAR(128)" /> <modifyDataType tableName="device" columnName="status" newDataType="VARCHAR(128)" /> - - <dropIndex tableName="user_device" indexName="user_device_user_id" /> - <createIndex tableName="user_device" indexName="user_device_userId"> - <column name="userId" /> - </createIndex> <modifyDataType tableName="position" columnName="protocol" newDataType="VARCHAR(128)" /> <modifyDataType tableName="position" columnName="latitude" newDataType="FLOAT" /> @@ -81,13 +76,13 @@ <modifyDataType tableName="server" columnName="longitude" newDataType="FLOAT" /> <addDefaultValue tableName="server" columnName="longitude" defaultValueNumeric="0" /> - <dropPrimaryKey tableName="traccar" /> - <addColumn tableName="traccar"> - <column name="version" type="INT" defaultValueNumeric="0"> - <constraints nullable="false" /> - </column> - </addColumn> - <dropColumn tableName="traccar" columnName="id" /> + <dropTable tableName="traccar" /> + + <createTable tableName="traccar"> + <column name="version" type="INT" defaultValueNumeric="0"> + <constraints nullable="false" /> + </column> + </createTable> <insert tableName="traccar"> <column name="version" valueNumeric="301" /> |