Skip to content

Commit

Permalink
Dev Made hidden parameter maxdbsizeforbackup visible in config-defaults
Browse files Browse the repository at this point in the history
  • Loading branch information
c-schmitz committed Sep 1, 2022
1 parent ac9184e commit e0560e5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
7 changes: 5 additions & 2 deletions application/config/config-defaults.php
Expand Up @@ -72,8 +72,11 @@
$config['minrepeatheadings'] = 3; // The minimum number of remaining answers that are required before repeating the headings in array (flexible) questions.
$config['defaultlang'] = 'en'; // The default language to use - the available languages are the directory names in the /locale dir - for example de = German
$config['timeadjust'] = 0; // Number of hours to adjust between your webserver local time and your own local time (for datestamping responses)
$config['allowexportalldb'] = 0; // 0 will only export prefixed tables when doing a database dump. If set to 1 ALL tables in the database will be exported
$config['maxdumpdbrecords'] = 500; // The maximum number of records that would be ouputted in a go during a database backup. Reduce this number if you're getting errors while backing up the entire database.

$config['maxdumpdbrecords'] = 500; // The maximum number of records that would be ouput in one go during a database backup. Reduce this number if you're getting errors while backing up the entire database.
$config['maxdbsizeforbackup'] = 0; // The maximum database size in MB that is backed up up by ComfortUpdate - 0 for no limit
$config['allowexportalldb'] = 0; // Default 0 will only export prefixed tables when doing a database dump. If set to 1 ALL tables in the database will be exported (use carefully)

$config['deletenonvalues'] = 1; // By default, LimeSurvey does not save responses to conditional questions that haven't been answered/shown. To have LimeSurvey save these responses change this value to 0.
$config['stringcomparizonoperators'] = 0; // By default, LimeSurvey assumes the numrical order for comparizon operators in conditions. If you need string comparizon operators, set this parameter to 1
$config['shownoanswer'] = 2; // Show 'no answer' for non mandatory questions ( 0 = no , 1 = yes , 2 = overridden by survey settings )
Expand Down
4 changes: 2 additions & 2 deletions application/models/UpdateForm.php
Expand Up @@ -513,8 +513,8 @@ public function backupDb($destinationBuild)
$dbChecks = $this->getDbChecks($destinationBuild);

// Test if user defined by himself a max size for dbBackup
if (Yii::app()->getConfig("maxdbsizeforbackup")) {
$dbChecks->dbSize = Yii::app()->getConfig("maxdbsizeforbackup");
if (Yii::app()->getConfig("maxdbsizeforbackup") && Yii::app()->getConfig("maxdbsizeforbackup") > 0) {
$dbChecks->dbSize = Yii::app()->getConfig("maxdbsizeforbackup");
}

if ($dbChecks->result) {
Expand Down

0 comments on commit e0560e5

Please sign in to comment.