aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/database/DataManager.java
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2015-09-07 09:34:03 +1200
committerAnton Tananaev <anton.tananaev@gmail.com>2015-09-07 09:34:03 +1200
commitbffaeb73d428d6b8cf78a727d9f48b6ef3722431 (patch)
tree29166801123bba650c140bcf40842591d51466db /src/org/traccar/database/DataManager.java
parent5f4e33e16040412edf3dbe34866a467429a9b37c (diff)
parent466364542c61e103d0e9d38aca70e729e688be35 (diff)
downloadtrackermap-server-bffaeb73d428d6b8cf78a727d9f48b6ef3722431.tar.gz
trackermap-server-bffaeb73d428d6b8cf78a727d9f48b6ef3722431.tar.bz2
trackermap-server-bffaeb73d428d6b8cf78a727d9f48b6ef3722431.zip
Merge pull request #1397 from vitalidze/master
Initialise API for old interface
Diffstat (limited to 'src/org/traccar/database/DataManager.java')
-rw-r--r--src/org/traccar/database/DataManager.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/org/traccar/database/DataManager.java b/src/org/traccar/database/DataManager.java
index 0b8cff03a..add355ea7 100644
--- a/src/org/traccar/database/DataManager.java
+++ b/src/org/traccar/database/DataManager.java
@@ -143,7 +143,7 @@ public class DataManager implements IdentityManager {
private void initDatabaseSchema() throws SQLException {
- if (!config.getBoolean("web.old")) {
+ if (config.getString("web.type", "new").equals("new") || config.getString("web.type", "new").equals("api")) {
Connection connection = dataSource.getConnection();
ResultSet result = connection.getMetaData().getTables(