From cf04dd206bcf355a949195d33a256b4a6b746786 Mon Sep 17 00:00:00 2001 From: betateilchen <> Date: Sat, 16 Feb 2019 18:59:07 +0000 Subject: [PATCH] configDB: change some field length on empty tables git-svn-id: https://svn.fhem.de/fhem/trunk@18612 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/configDB.pm | 6 ++++-- fhem/contrib/configDB/configDB.db | Bin 12288 -> 12288 bytes 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/fhem/configDB.pm b/fhem/configDB.pm index 6580809db..0890099a6 100644 --- a/fhem/configDB.pm +++ b/fhem/configDB.pm @@ -145,6 +145,8 @@ # 2019-01-17 - added support for device specific uuid (setuuid) # 2019-01-18 - changed use GetDefAndAttr() # +# 2019-02-16 - changed default field length for table creation +# ############################################################################## =cut @@ -293,7 +295,7 @@ sub cfgDB_Init() { $fhem_dbh->do("CREATE TABLE IF NOT EXISTS fhemversions(VERSION INT, VERSIONUUID CHAR(50))"); # create TABLE fhemconfig if nonexistent - $fhem_dbh->do("CREATE TABLE IF NOT EXISTS fhemconfig(COMMAND VARCHAR(32), DEVICE VARCHAR(64), P1 VARCHAR(50), P2 TEXT, VERSION INT, VERSIONUUID CHAR(50))"); + $fhem_dbh->do("CREATE TABLE IF NOT EXISTS fhemconfig(COMMAND VARCHAR(32), DEVICE VARCHAR(64), P1 VARCHAR(128), P2 TEXT, VERSION INT, VERSIONUUID CHAR(50))"); # create INDEX on fhemconfig if nonexistent (only if SQLITE) $fhem_dbh->do("CREATE INDEX IF NOT EXISTS config_idx on 'fhemconfig' (versionuuid,version)") @@ -315,7 +317,7 @@ sub cfgDB_Init() { _cfgDB_InsertLine($fhem_dbh, $uuid, 'define telnetPort telnet 7072 global',6); _cfgDB_InsertLine($fhem_dbh, $uuid, 'define web FHEMWEB 8083 global',7); _cfgDB_InsertLine($fhem_dbh, $uuid, 'attr web allowfrom .*',8); - _cfgDB_InsertLine($fhem_dbh, $uuid, 'define Logfile FileLog %L/fhem-%Y-%m-%d.log fakelog',9); + _cfgDB_InsertLine($fhem_dbh, $uuid, 'define Logfile FileLog %L/fhem-%Y-%m-%d.log FakeLog',9); } # create TABLE fhemstate if nonexistent diff --git a/fhem/contrib/configDB/configDB.db b/fhem/contrib/configDB/configDB.db index e228d8636f9d9a9d39656b915ae5788281143502..da085818fddfbbf89c3d5d2330a20706b88b106e 100644 GIT binary patch delta 241 zcmZojXh@hKEy&Bjz`z5<>_E%{#B39Fj751F^aOtMGW}&>VO-C^JeO%JQvl=ojg8if zDvffi?Ba@wj7{t%iAg!BX&I@x$@zI{ndt}?+hj#%8(}jOO&x^*LxnKMAZHK9APqw! zi^=)SdXoc~v>90@*Dy7LEL$*{k$DOS8!H=-&A>2uE_1mQ6Nm*SSb+={FaZ(UtjKeT zc@qZ<%Vrjlzs#E%1^zQL@iJ`IW4XjUae}cVGf+7P5OV`D$U|%lt`In}QFXJc#BOl_ Dhlnuf delta 206 zcmZojXh@hKEy&Hlz`z5&qD9gk?nUQ%4hlgX3hN*$3=H$7|<#MbbU2uX8!~zo#F`yaem^X2-u<$W6 ze*{^{!~C218}rA_f;^9ydAL=9A{-Jxf}LlP0LvyGMizO-B@8SKt_+MS43`