diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2016-10-08 16:34:52 +1300 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2016-10-08 16:34:52 +1300 |
commit | 47a5886d953ca511c425a0226ff0084696dc6a9e (patch) | |
tree | 0639edfe2be9ef92e71d5b4dd9eff2d5a194da25 | |
parent | c39342398677923c9fae7b1b86bb11914eafb847 (diff) | |
download | trackermap-server-47a5886d953ca511c425a0226ff0084696dc6a9e.tar.gz trackermap-server-47a5886d953ca511c425a0226ff0084696dc6a9e.tar.bz2 trackermap-server-47a5886d953ca511c425a0226ff0084696dc6a9e.zip |
Add coordinates format for user and server
-rw-r--r-- | schema/changelog-3.8.xml | 7 | ||||
-rw-r--r-- | src/org/traccar/model/Server.java | 10 | ||||
-rw-r--r-- | src/org/traccar/model/User.java | 10 |
3 files changed, 27 insertions, 0 deletions
diff --git a/schema/changelog-3.8.xml b/schema/changelog-3.8.xml index e7aa1ad58..bc11d99ce 100644 --- a/schema/changelog-3.8.xml +++ b/schema/changelog-3.8.xml @@ -74,5 +74,12 @@ </column> </addColumn> + <addColumn tableName="users"> + <column name="coordinatesformat" type="VARCHAR(128)" /> + </addColumn> + <addColumn tableName="server"> + <column name="coordinatesformat" type="VARCHAR(128)" /> + </addColumn> + </changeSet> </databaseChangeLog> diff --git a/src/org/traccar/model/Server.java b/src/org/traccar/model/Server.java index 0cd23865f..9a1552110 100644 --- a/src/org/traccar/model/Server.java +++ b/src/org/traccar/model/Server.java @@ -137,4 +137,14 @@ public class Server extends Extensible { this.forceSettings = forceSettings; } + private String coordinatesFormat; + + public String getCoordinatesFormat() { + return coordinatesFormat; + } + + public void setCoordinatesFormat(String coordinatesFormat) { + this.coordinatesFormat = coordinatesFormat; + } + } diff --git a/src/org/traccar/model/User.java b/src/org/traccar/model/User.java index aa73cfcff..63aa3e641 100644 --- a/src/org/traccar/model/User.java +++ b/src/org/traccar/model/User.java @@ -130,6 +130,16 @@ public class User extends Extensible { this.twelveHourFormat = twelveHourFormat; } + private String coordinatesFormat; + + public String getCoordinatesFormat() { + return coordinatesFormat; + } + + public void setCoordinatesFormat(String coordinatesFormat) { + this.coordinatesFormat = coordinatesFormat; + } + private String password; public String getPassword() { |