2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-04-13 15:19:52 +00:00

configDB.pm - minor improvements

git-svn-id: https://svn.fhem.de/fhem/trunk@5174 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
betateilchen 2014-03-09 11:51:14 +00:00
parent bb6432f9ea
commit 48fdea1f47

View File

@ -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