diff --git a/fhem/configDB.pm b/fhem/configDB.pm index 0dcdb4362..fe982d0b9 100644 --- a/fhem/configDB.pm +++ b/fhem/configDB.pm @@ -119,6 +119,7 @@ sub cfgDB_Init { # Create non-existing database tables # Create default config entries if necessary # + my $fhem_dbh = _cfgDB_Connect; eval { $fhem_dbh->do("CREATE EXTENSION \"uuid-ossp\"") if($cfgDB_dbtype eq 'POSTGRESQL'); }; @@ -399,6 +400,11 @@ sub _cfgDB_Uuid{ return $uuid; } +sub _cfgDB_backupdata { + my (undef, $cfgDB_dblocation) = split(/=/,$cfgDB_dbconn); + return ($cfgDB_dbtype,$cfgDB_dblocation); +} + ################################################## # Tools / Additional functions # not called from fhem.pl directly