aboutsummaryrefslogtreecommitdiff
path: root/schema/changelog-5.0.xml
diff options
context:
space:
mode:
authorAnton Tananaev <anton@traccar.org>2022-05-21 14:11:30 -0700
committerAnton Tananaev <anton@traccar.org>2022-05-21 14:11:30 -0700
commit4616e04a34e42e8f415c31fa3b871d9ab2608c96 (patch)
tree6757389ca14ff24a71c5ba437ddcc7381437dce2 /schema/changelog-5.0.xml
parent445acb5da5ba9e321a016630d58147c7e69fe916 (diff)
downloadtrackermap-server-4616e04a34e42e8f415c31fa3b871d9ab2608c96.tar.gz
trackermap-server-4616e04a34e42e8f415c31fa3b871d9ab2608c96.tar.bz2
trackermap-server-4616e04a34e42e8f415c31fa3b871d9ab2608c96.zip
Rename changelog version
Diffstat (limited to 'schema/changelog-5.0.xml')
-rw-r--r--schema/changelog-5.0.xml33
1 files changed, 33 insertions, 0 deletions
diff --git a/schema/changelog-5.0.xml b/schema/changelog-5.0.xml
new file mode 100644
index 000000000..0e8474eef
--- /dev/null
+++ b/schema/changelog-5.0.xml
@@ -0,0 +1,33 @@
+<?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"
+ logicalFilePath="changelog-5.0">
+
+ <changeSet author="author" id="changelog-5.0">
+
+ <preConditions onFail="MARK_RAN">
+ <not>
+ <columnExists tableName="tc_servers" columnName="disablereports" />
+ </not>
+ </preConditions>
+
+ <addColumn tableName="tc_servers">
+ <column name="disablereports" type="BOOLEAN" defaultValueBoolean="false" />
+ </addColumn>
+
+ <addColumn tableName="tc_users">
+ <column name="disablereports" type="BOOLEAN" defaultValueBoolean="false" />
+ </addColumn>
+
+ <renameColumn tableName="tc_orders" oldColumnName="toAddress" newColumnName="toaddresstmp" columnDataType="VARCHAR(512)" />
+ <renameColumn tableName="tc_orders" oldColumnName="fromAddress" newColumnName="fromaddresstmp" columnDataType="VARCHAR(512)" />
+
+ <renameColumn tableName="tc_orders" oldColumnName="toaddresstmp" newColumnName="toaddress" columnDataType="VARCHAR(512)" />
+ <renameColumn tableName="tc_orders" oldColumnName="fromaddresstmp" newColumnName="fromaddress" columnDataType="VARCHAR(512)" />
+
+ </changeSet>
+
+</databaseChangeLog>