aboutsummaryrefslogtreecommitdiff
path: root/debug.xml
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2015-07-20 16:22:03 +1200
committerAnton Tananaev <anton.tananaev@gmail.com>2015-07-20 16:22:03 +1200
commit1b8e11a7fd277f4f07b84f3a35f752c68eefabb3 (patch)
treecc2dc86f2190b20a1aa937f5b2d80748b353fce4 /debug.xml
parent21d703315b47a79f47bcee279b371aae1a628467 (diff)
downloadtrackermap-server-1b8e11a7fd277f4f07b84f3a35f752c68eefabb3.tar.gz
trackermap-server-1b8e11a7fd277f4f07b84f3a35f752c68eefabb3.tar.bz2
trackermap-server-1b8e11a7fd277f4f07b84f3a35f752c68eefabb3.zip
Update database schema
Diffstat (limited to 'debug.xml')
-rw-r--r--debug.xml21
1 files changed, 13 insertions, 8 deletions
diff --git a/debug.xml b/debug.xml
index 2f26359ab..12a81031e 100644
--- a/debug.xml
+++ b/debug.xml
@@ -54,10 +54,10 @@
salt VARCHAR(128) DEFAULT '' NOT NULL,
readonly BIT DEFAULT 0 NOT NULL,
admin BIT DEFAULT 0 NOT NULL,
- map VARCHAR(128) DEFAULT 'osm' NOT NULL,
- language VARCHAR(128) DEFAULT 'en' NOT NULL,
- distanceUnit VARCHAR(128) DEFAULT 'km' NOT NULL,
- speedUnit VARCHAR(128) DEFAULT 'kmh' NOT NULL,
+ map VARCHAR(128),
+ language VARCHAR(128),
+ distanceUnit VARCHAR(128),
+ speedUnit VARCHAR(128),
latitude FLOAT DEFAULT 0 NOT NULL,
longitude FLOAT DEFAULT 0 NOT NULL,
zoom INT DEFAULT 0 NOT NULL);
@@ -116,11 +116,16 @@
CREATE TABLE server (
id INT PRIMARY KEY AUTO_INCREMENT,
registration BIT NOT NULL,
- latitude FLOAT NOT NULL,
- longitude FLOAT NOT NULL,
- zoom INT NOT NULL);
+ map VARCHAR(128),
+ language VARCHAR(128),
+ distanceUnit VARCHAR(128),
+ speedUnit VARCHAR(128),
+ latitude FLOAT DEFAULT 0 NOT NULL,
+ longitude FLOAT DEFAULT 0 NOT NULL,
+ zoom INT DEFAULT 0 NOT NULL);
- CREATE TABLE traccar (id INT);
+ CREATE TABLE traccar (
+ version INT DEFAULT 0 NOT NULL);
</entry>
<entry key='database.selectServers'>