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

configDB.pm: prevent deletion of statefiles for postgresql (temporary)

git-svn-id: https://svn.fhem.de/fhem/trunk@25840 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
betateilchen 2022-03-14 17:08:28 +00:00
parent add2d05162
commit 0f36f77cff

View File

@ -1283,6 +1283,12 @@ sub _cfgDB_deleteRF {
}
sub _cfgDB_deleteStatefiles {
if ($configDB{type} eq "POSTGRESQL") {
Log 1, "configDB: deletion of statefiles currently not supported for postgresql!";
return;
}
my $filename;
my $fhem_dbh = _cfgDB_Connect;
my $sth = $fhem_dbh->prepare( "SELECT filename FROM fhemb64filesave where filename like '%.fhem.save'" );