aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2015-12-19 09:18:59 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2015-12-19 09:18:59 +1300
commit98d20f23b247c5a5cf45354ba96a2686df97927e (patch)
treecf931e8cfa7bc4439b97c9ad14570c20477811e6
parentdf84a18e7aabc666953b2aa4e5819603486980af (diff)
downloadtrackermap-server-98d20f23b247c5a5cf45354ba96a2686df97927e.tar.gz
trackermap-server-98d20f23b247c5a5cf45354ba96a2686df97927e.tar.bz2
trackermap-server-98d20f23b247c5a5cf45354ba96a2686df97927e.zip
Check if database exists before normalize
-rw-r--r--database/db.changelog-normalize.xml2
1 files changed, 2 insertions, 0 deletions
diff --git a/database/db.changelog-normalize.xml b/database/db.changelog-normalize.xml
index 38995e383..7621846ca 100644
--- a/database/db.changelog-normalize.xml
+++ b/database/db.changelog-normalize.xml
@@ -8,6 +8,7 @@
<changeSet author="author" id="changelog-normalize-user">
<preConditions onFail="MARK_RAN">
+ <tableExists tableName="traccar" />
<not>
<columnExists tableName="user" columnName="id"/>
</not>
@@ -24,6 +25,7 @@
<changeSet author="author" id="changelog-normalize-user-device">
<preConditions onFail="MARK_RAN">
+ <tableExists tableName="traccar" />
<not>
<columnExists tableName="user_device" columnName="read"/>
</not>