Skip to content
Snippets Groups Projects
Commit a3243ca9 authored by eileen's avatar eileen
Browse files

drop report temp tables on db clean up.

This helps where TEMPORARY tables are a bit limiting due to their join restrictions or the desire to retain them for when the data doesn't go stale that quickly
parent 259ec07f
No related branches found
No related tags found
No related merge requests found
......@@ -728,9 +728,12 @@ class CRM_Core_Config extends CRM_Core_Config_Variables {
SELECT TABLE_NAME as tableName
FROM INFORMATION_SCHEMA.TABLES
WHERE TABLE_SCHEMA = %1
AND ( TABLE_NAME LIKE 'civicrm_import_job_%'
OR TABLE_NAME LIKE 'civicrm_export_temp%'
OR TABLE_NAME LIKE 'civicrm_task_action_temp%' )
AND
( TABLE_NAME LIKE 'civicrm_import_job_%'
OR TABLE_NAME LIKE 'civicrm_export_temp%'
OR TABLE_NAME LIKE 'civicrm_task_action_temp%'
OR TABLE_NAME LIKE 'civicrm_report_temp%'
)
";
$params = array(1 => array($dao->database(), 'String'));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment