diff options
author | Stefan Giehl <stefan@matomo.org> | 2020-07-24 12:07:46 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-24 12:07:46 +0300 |
commit | 6b5f8138180716d5088d764f0b41d5787159b28a (patch) | |
tree | 358c2c2535fb83fdebf3815556797b38cc42e8b1 /core | |
parent | 817c48d66f456de83afbbe60c3996dabf99fb605 (diff) |
Rename config setting for maximum rows in custom dimension reports (#16229)
* Rename config setting for maximum rows in custom dimension reports
* automatically set new config values if old ones were set
* submodule update
* update expected UI files
Diffstat (limited to 'core')
-rw-r--r-- | core/Updates/4.0.0-b2.php | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/core/Updates/4.0.0-b2.php b/core/Updates/4.0.0-b2.php index 4a6309ea08..d71e55a7a4 100644 --- a/core/Updates/4.0.0-b2.php +++ b/core/Updates/4.0.0-b2.php @@ -9,6 +9,7 @@ namespace Piwik\Updates; +use Piwik\Config; use Piwik\Plugin\Manager; use Piwik\Plugins\Installation\ServerFilesGenerator; use Piwik\Plugins\UserCountry\LocationProvider; @@ -56,6 +57,16 @@ class Updates_4_0_0_b2 extends PiwikUpdates $migrations[] = $this->migration->plugin->activate('CustomDimensions'); } + $configTableLimit = Config::getInstance()->getFromLocalConfig('General')['datatable_archiving_maximum_rows_custom_variables'] ?? null; + $configSubTableLimit = Config::getInstance()->getFromLocalConfig('General')['datatable_archiving_maximum_rows_subtable_custom_variables'] ?? null; + + if ($configTableLimit) { + $migrations[] = $this->migration->config->set('General', 'datatable_archiving_maximum_rows_custom_dimensions', $configTableLimit); + } + if ($configSubTableLimit) { + $migrations[] = $this->migration->config->set('General', 'datatable_archiving_maximum_rows_subtable_custom_dimensions', $configSubTableLimit); + } + return $migrations; } |