aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/database
diff options
context:
space:
mode:
Diffstat (limited to 'src/org/traccar/database')
-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(