diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2016-10-08 16:04:44 +1300 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2016-10-08 16:04:44 +1300 |
commit | c39342398677923c9fae7b1b86bb11914eafb847 (patch) | |
tree | 451c2a8160018bd688683a63077611d685d8b64e | |
parent | 7d075e394580b6618d2001f46928cb2465bad0ca (diff) | |
download | trackermap-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.xml | 6 | ||||
-rw-r--r-- | src/org/traccar/model/Server.java | 10 |
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; + } + } |