2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-01-31 12:49:34 +00:00

configDB.pm: fix field error on database create

git-svn-id: https://svn.fhem.de/fhem/trunk@26522 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
betateilchen 2022-10-11 13:45:39 +00:00
parent 6806f5e33f
commit bd45e94c07

View File

@ -341,7 +341,7 @@ sub cfgDB_Init {
# insert default entries to get fhem running # insert default entries to get fhem running
$fhem_dbh->commit(); $fhem_dbh->commit();
my $uuid = createUniqueId(); my $uuid = createUniqueId();
$fhem_dbh->do("INSERT INTO fhemversions values (0, '$uuid')"); $fhem_dbh->do("INSERT INTO fhemversions values (0, '$uuid',NULL)");
_cfgDB_InsertLine($fhem_dbh, $uuid, '#created by cfgDB_Init',0); _cfgDB_InsertLine($fhem_dbh, $uuid, '#created by cfgDB_Init',0);
_cfgDB_InsertLine($fhem_dbh, $uuid, 'attr global logdir ./log',1); _cfgDB_InsertLine($fhem_dbh, $uuid, 'attr global logdir ./log',1);
_cfgDB_InsertLine($fhem_dbh, $uuid, 'attr global logfile %L/fhem-%Y-%m-%d.log',2); _cfgDB_InsertLine($fhem_dbh, $uuid, 'attr global logfile %L/fhem-%Y-%m-%d.log',2);