aboutsummaryrefslogtreecommitdiff
path: root/database/db.changelog-3.3.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.3.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.3.xml')
-rw-r--r--database/db.changelog-3.3.xml30
1 files changed, 30 insertions, 0 deletions
diff --git a/database/db.changelog-3.3.xml b/database/db.changelog-3.3.xml
new file mode 100644
index 000000000..cb9823ef8
--- /dev/null
+++ b/database/db.changelog-3.3.xml
@@ -0,0 +1,30 @@
+<?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.3">
+
+ <dropDefaultValue tableName="user" columnName="salt" />
+
+ <addDefaultValue tableName="server" columnName="registration" defaultValueBoolean="true" />
+
+ <addColumn tableName="server">
+ <column name="readonly" type="BOOLEAN" defaultValueBoolean="false">
+ <constraints nullable="false" />
+ </column>
+ </addColumn>
+
+ <dropTable tableName="traccar" />
+
+ <renameTable oldTableName="user" newTableName="users" />
+ <renameTable oldTableName="device" newTableName="devices" />
+ <renameTable oldTableName="position" newTableName="positions" />
+
+ <dropColumn tableName="user_device" columnName="read" />
+ <dropColumn tableName="user_device" columnName="write" />
+
+ </changeSet>
+</databaseChangeLog>