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.xml50
1 files changed, 39 insertions, 11 deletions
diff --git a/database/db.changelog-3.2.xml b/database/db.changelog-3.2.xml
index a072c0703..576713dc7 100644
--- a/database/db.changelog-3.2.xml
+++ b/database/db.changelog-3.2.xml
@@ -1,17 +1,45 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<databaseChangeLog
- xmlns="http://www.liquibase.org/xml/ns/dbchangelog/1.9"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog/1.9
- http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-1.9.xsd">
+<?xml version="1.0" encoding="UTF-8"?>
+<databaseChangeLog
+ xmlns="http://www.liquibase.org/xml/ns/dbchangelog"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog
+ http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.4.xsd">
<changeSet author="author" id="changelog-3.2">
- <createTable tableName="TablesAndTables">
- <column name="COLUMN1" type="TEXT">
- <constraints nullable="true" primaryKey="false" unique="false"/>
- </column>
- </createTable>
+ <preConditions onFail="MARK_RAN">
+ <not>
+ <columnExists tableName="position" columnName="attributes" />
+ </not>
+ </preConditions>
+
+ <dropDefaultValue tableName="user" columnName="latitude" />
+ <modifyDataType tableName="user" columnName="latitude" newDataType="DOUBLE" />
+ <addDefaultValue tableName="user" columnName="latitude" defaultValueNumeric="0" />
+ <dropDefaultValue tableName="user" columnName="longitude" />
+ <modifyDataType tableName="user" columnName="longitude" newDataType="DOUBLE" />
+ <addDefaultValue tableName="user" columnName="longitude" defaultValueNumeric="0" />
+
+ <dropColumn tableName="device" columnName="dataId" />
+
+ <modifyDataType tableName="position" columnName="latitude" newDataType="DOUBLE" />
+ <modifyDataType tableName="position" columnName="longitude" newDataType="DOUBLE" />
+ <renameColumn tableName="position" oldColumnName="other" newColumnName="attributes" />
+
+ <dropTable tableName="data" />
+
+ <addColumn tableName="server">
+ <column name="bingKey" type="VARCHAR(128)" />
+ </addColumn>
+ <addColumn tableName="server">
+ <column name="mapUrl" type="VARCHAR(128)" />
+ </addColumn>
+ <modifyDataType tableName="server" columnName="latitude" newDataType="DOUBLE" />
+ <modifyDataType tableName="server" columnName="longitude" newDataType="DOUBLE" />
+
+ <update tableName="traccar">
+ <column name="version" valueNumeric="302" />
+ </update>
</changeSet>
</databaseChangeLog>