From 48fdea1f471bda5c34c0ebf935cb74c090d08bad Mon Sep 17 00:00:00 2001 From: betateilchen <> Date: Sun, 9 Mar 2014 11:51:14 +0000 Subject: [PATCH] configDB.pm - minor improvements git-svn-id: https://svn.fhem.de/fhem/trunk@5174 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/configDB.pm | 6 ++++++ 1 file changed, 6 insertions(+) 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