diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2015-04-26 20:00:25 +1200 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2015-04-26 20:00:25 +1200 |
commit | b2cbb5698ee7eea9abd811a6cc653b624b09e7d9 (patch) | |
tree | d43141266ef1ef3aa0555a6442470c4e5cf81b90 /src/org/traccar/database/DataManager.java | |
parent | 2eea9f7e758e116a56a58070cc0d839286e606c7 (diff) | |
download | trackermap-server-b2cbb5698ee7eea9abd811a6cc653b624b09e7d9.tar.gz trackermap-server-b2cbb5698ee7eea9abd811a6cc653b624b09e7d9.tar.bz2 trackermap-server-b2cbb5698ee7eea9abd811a6cc653b624b09e7d9.zip |
Rename create user method
Diffstat (limited to 'src/org/traccar/database/DataManager.java')
-rw-r--r-- | src/org/traccar/database/DataManager.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/org/traccar/database/DataManager.java b/src/org/traccar/database/DataManager.java index 2f333b38d..5e12dc865 100644 --- a/src/org/traccar/database/DataManager.java +++ b/src/org/traccar/database/DataManager.java @@ -311,7 +311,7 @@ public class DataManager { "CREATE TABLE traccar1 (" + "id INT PRIMARY KEY AUTO_INCREMENT);"); - createUser("admin", "admin", true); + addUser("admin", "admin", true); } } finally { @@ -344,7 +344,7 @@ public class DataManager { } } - public void createUser(String name, String password, boolean admin) throws SQLException { + public void addUser(String name, String password, boolean admin) throws SQLException { Connection connection = dataSource.getConnection(); try { |