aboutsummaryrefslogtreecommitdiff
path: root/database/db.changelog-3.3.xml
diff options
context:
space:
mode:
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>