diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2015-07-20 16:22:03 +1200 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2015-07-20 16:22:03 +1200 |
commit | 1b8e11a7fd277f4f07b84f3a35f752c68eefabb3 (patch) | |
tree | cc2dc86f2190b20a1aa937f5b2d80748b353fce4 | |
parent | 21d703315b47a79f47bcee279b371aae1a628467 (diff) | |
download | trackermap-server-1b8e11a7fd277f4f07b84f3a35f752c68eefabb3.tar.gz trackermap-server-1b8e11a7fd277f4f07b84f3a35f752c68eefabb3.tar.bz2 trackermap-server-1b8e11a7fd277f4f07b84f3a35f752c68eefabb3.zip |
Update database schema
-rw-r--r-- | debug.xml | 21 |
1 files changed, 13 insertions, 8 deletions
@@ -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'> |