From 31ee935628bcff0988a078cb7a04f737062f289c Mon Sep 17 00:00:00 2001 From: Jan Speller Date: Thu, 4 Mar 2021 12:40:57 +0100 Subject: [PATCH] Change spacing in init_db.sql and add comment on table creation --- docu/docs/plugin/mysql.md | 1 + init_db.sql | 23 ++++++++++++----------- 2 files changed, 13 insertions(+), 11 deletions(-) diff --git a/docu/docs/plugin/mysql.md b/docu/docs/plugin/mysql.md index 0497aeb..b2cd2d4 100644 --- a/docu/docs/plugin/mysql.md +++ b/docu/docs/plugin/mysql.md @@ -3,6 +3,7 @@ ## Beschreibung Mit diesem Plugin ist es moeglich, die Alarmierungen in einer Mysql / Mariadb Datenbank zu speichern. +Das Plugin legt die Tabelle "boswatch" selbststaendig an, wenn diese nicht vorhanden ist. ## Unterstütze Alarmtypen - Fms diff --git a/init_db.sql b/init_db.sql index 79a86fc..b5948bc 100644 --- a/init_db.sql +++ b/init_db.sql @@ -8,16 +8,16 @@ create table boswatch pocsag_subricText enum('a', 'b', 'c', 'd') default null, pocsag_message text default null, pocsag_bitrate enum('512', '1200', '2400') default null, - zvei_tone char(5) default null, - fms_fms char(8) default null, - fms_service varchar(255) default null, - fms_country varchar(255) default null, - fms_location varchar(255) default null, - fms_vehicle varchar(255) default null, - fms_status char(1) default null, - fms_direction char(1) default null, - fms_directionText tinytext default null, - fms_tacticalInfo char(3) default null, + zvei_tone char(5) default null, + fms_fms char(8) default null, + fms_service varchar(255) default null, + fms_country varchar(255) default null, + fms_location varchar(255) default null, + fms_vehicle varchar(255) default null, + fms_status char(1) default null, + fms_direction char(1) default null, + fms_directionText tinytext default null, + fms_tacticalInfo char(3) default null, serverName varchar(255) not null, serverVersion varchar(100) not null, serverBuildDate varchar(255) not null, @@ -31,4 +31,5 @@ create table boswatch frequency varchar(30) not null ); create unique index boswatch_id_uindex - on boswatch (id); \ No newline at end of file + on boswatch (id); +