aboutsummaryrefslogtreecommitdiff
path: root/database/db.changelog-3.0.xml
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2015-12-18 16:32:46 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2015-12-18 16:32:46 +1300
commit5d974ea790397d0646f013e91c8d3b0829ffbd54 (patch)
tree7c4100ddd89d0bf0a4e20b9c165e6e66bed2bc09 /database/db.changelog-3.0.xml
parent2c1aee51f375885b3ee575425814ca8cbe6129ff (diff)
downloadtrackermap-server-5d974ea790397d0646f013e91c8d3b0829ffbd54.tar.gz
trackermap-server-5d974ea790397d0646f013e91c8d3b0829ffbd54.tar.bz2
trackermap-server-5d974ea790397d0646f013e91c8d3b0829ffbd54.zip
Finish Liquibase migration implementation
Diffstat (limited to 'database/db.changelog-3.0.xml')
-rw-r--r--database/db.changelog-3.0.xml25
1 files changed, 16 insertions, 9 deletions
diff --git a/database/db.changelog-3.0.xml b/database/db.changelog-3.0.xml
index bbc52dfeb..4f94494b4 100644
--- a/database/db.changelog-3.0.xml
+++ b/database/db.changelog-3.0.xml
@@ -1,9 +1,9 @@
-<?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.0">
@@ -44,6 +44,9 @@
<column name="distanceUnit" type="VARCHAR(1024)" defaultValue="km">
<constraints nullable="false" />
</column>
+ <column name="speedUnit" type="VARCHAR(1024)" defaultValue="kmh">
+ <constraints nullable="false" />
+ </column>
<column name="latitude" type="DOUBLE" defaultValueNumeric="0">
<constraints nullable="false" />
</column>
@@ -156,9 +159,6 @@
<addForeignKeyConstraint baseTableName="data" baseColumnNames="deviceId" constraintName="fk_data_deviceId" referencedTableName="device" referencedColumnNames="id" onDelete="CASCADE" />
- <addForeignKeyConstraint baseTableName="device" baseColumnNames="positionId" constraintName="fk_device_positionId" referencedTableName="position" referencedColumnNames="id" />
- <addForeignKeyConstraint baseTableName="device" baseColumnNames="dataId" constraintName="fk_device_dataId" referencedTableName="data" referencedColumnNames="id" />
-
<createTable tableName="server">
<column name="id" type="INT" autoIncrement="true">
<constraints primaryKey="true" />
@@ -183,5 +183,12 @@
</column>
</createTable>
+ <insert tableName="server">
+ <column name="registration" valueBoolean="true" />
+ <column name="latitude" valueNumeric="0" />
+ <column name="longitude" valueNumeric="0" />
+ <column name="zoom" valueNumeric="0" />
+ </insert>
+
</changeSet>
</databaseChangeLog>