mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-30 09:15:15 +02:00
RC1 #4755
This commit is contained in:
parent
96c218f21e
commit
712079c30e
@ -1558,11 +1558,11 @@ function config_update_config()
|
||||
|
||||
if (Config::set(
|
||||
'history_partitions_auto',
|
||||
get_parameter_switch('history_partitions_auto'),
|
||||
get_parameter_switch('history_partitions_auto', 0),
|
||||
true
|
||||
) !== true
|
||||
) {
|
||||
$error_update[] = __('Historical database days compact');
|
||||
$error_update[] = __('Historical database partitions');
|
||||
}
|
||||
|
||||
if (Config::set(
|
||||
|
@ -73,18 +73,18 @@ final class Config
|
||||
false
|
||||
);
|
||||
|
||||
if ($config['history_db_connection'] !== false) {
|
||||
$data = \db_get_all_rows_sql(
|
||||
'SELECT * FROM `tconfig`',
|
||||
false,
|
||||
false,
|
||||
$config['history_db_connection']
|
||||
);
|
||||
}
|
||||
|
||||
ob_get_clean();
|
||||
}
|
||||
|
||||
if ($config['history_db_connection'] !== false) {
|
||||
$data = \db_get_all_rows_sql(
|
||||
'SELECT * FROM `tconfig`',
|
||||
false,
|
||||
false,
|
||||
$config['history_db_connection']
|
||||
);
|
||||
}
|
||||
|
||||
if (is_array($data) !== true) {
|
||||
return [];
|
||||
}
|
||||
|
@ -1134,6 +1134,9 @@ if (defined($history_dbh)) {
|
||||
1 # Disable certain funcionality while runningn in historical database.
|
||||
);
|
||||
|
||||
# Handle partitions.
|
||||
enterprise_hook('handle_partitions', [$h_conf, $history_dbh]);
|
||||
|
||||
}
|
||||
|
||||
# Release the lock
|
||||
|
Loading…
x
Reference in New Issue
Block a user