98_configdb.pm: #111052 (show red question mark)

git-svn-id: https://svn.fhem.de/fhem/trunk@21914 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
betateilchen
2020-05-11 19:02:41 +00:00
parent c625f1b15b
commit d8af6acac2

View File

@@ -51,10 +51,18 @@ sub CommandConfigdb {
# delete attribute # delete attribute
delete $configDB{attr}{$param1}; delete $configDB{attr}{$param1};
$ret = " attribute $param1 deleted"; $ret = " attribute $param1 deleted";
shift @structChangeHist
if(@structChangeHist > AttrVal('global', 'maxChangeLog', 10) - 1);
push @structChangeHist, "configdb attr $param1 (deleted)";
addStructChange('configDB attr','configDB',"$param1 (deleted)");
} else { } else {
# set attribute # set attribute
$configDB{attr}{$param1} = $param2; $configDB{attr}{$param1} = $param2;
$ret = " attribute $param1 set to value $param2"; $ret = " attribute $param1 set to value $param2";
shift @structChangeHist
if(@structChangeHist > AttrVal('global', 'maxChangeLog', 10) - 1);
push @structChangeHist, "configdb attr $param1 $param2 (set)";
} }
} }
@@ -442,6 +450,7 @@ sub _cfgDB_readConfig() {
<ul><b>maxversions</b> set the maximum number of configurations stored in database. <br/> <ul><b>maxversions</b> set the maximum number of configurations stored in database. <br/>
The oldest version will be dropped in a "save config" if it would exceed this number.</ul><br/> The oldest version will be dropped in a "save config" if it would exceed this number.</ul><br/>
<ul><b>private</b> if set to 0 the database user and password info will be shown in 'configdb info' output.</ul><br/> <ul><b>private</b> if set to 0 the database user and password info will be shown in 'configdb info' output.</ul><br/>
<ul><b>dumpPath</b> define a path for database dumps<br/></ul><br/>
<br/> <br/>
<li><code>configdb diff &lt;device&gt; &lt;version&gt;</code></li><br/> <li><code>configdb diff &lt;device&gt; &lt;version&gt;</code></li><br/>