aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2016-10-08 16:04:44 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2016-10-08 16:04:44 +1300
commitc39342398677923c9fae7b1b86bb11914eafb847 (patch)
tree451c2a8160018bd688683a63077611d685d8b64e
parent7d075e394580b6618d2001f46928cb2465bad0ca (diff)
downloadtrackermap-server-c39342398677923c9fae7b1b86bb11914eafb847.tar.gz
trackermap-server-c39342398677923c9fae7b1b86bb11914eafb847.tar.bz2
trackermap-server-c39342398677923c9fae7b1b86bb11914eafb847.zip
Add flag to force server settings
-rw-r--r--schema/changelog-3.8.xml6
-rw-r--r--src/org/traccar/model/Server.java10
2 files changed, 16 insertions, 0 deletions
diff --git a/schema/changelog-3.8.xml b/schema/changelog-3.8.xml
index 1008b9b77..e7aa1ad58 100644
--- a/schema/changelog-3.8.xml
+++ b/schema/changelog-3.8.xml
@@ -68,5 +68,11 @@
<modifyDataType tableName="server" columnName="mapurl" newDataType="VARCHAR(512)" />
+ <addColumn tableName="server">
+ <column name="forcesettings" type="BOOLEAN" defaultValueBoolean="false">
+ <constraints nullable="false" />
+ </column>
+ </addColumn>
+
</changeSet>
</databaseChangeLog>
diff --git a/src/org/traccar/model/Server.java b/src/org/traccar/model/Server.java
index b1557bf8f..0cd23865f 100644
--- a/src/org/traccar/model/Server.java
+++ b/src/org/traccar/model/Server.java
@@ -127,4 +127,14 @@ public class Server extends Extensible {
this.twelveHourFormat = twelveHourFormat;
}
+ private boolean forceSettings;
+
+ public boolean getForceSettings() {
+ return forceSettings;
+ }
+
+ public void setForceSettings(boolean forceSettings) {
+ this.forceSettings = forceSettings;
+ }
+
}