You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: totum/commands/CleanSchemaTmpTables.php
+6-3Lines changed: 6 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -30,13 +30,16 @@ protected function execute(InputInterface $input, OutputInterface $output)
30
30
$Conf->setHostSchema(null, $schema);
31
31
}
32
32
}
33
-
33
+
$sql = $Conf->getSql();
34
34
$plus24 = date_create();
35
35
$plus24->modify('-24 hours');
36
-
$Conf->getSql()->exec('delete from _tmp_tables where touched<\'' . $plus24->format('Y-m-d H:i') . '\'');
36
+
$sql->exec('delete from _tmp_tables where touched<\'' . $plus24->format('Y-m-d H:i') . '\'');
37
37
38
38
$minus10 = date_create();
39
39
$minus10->modify('-10 minutes');
40
-
$Conf->getSql()->exec('delete from _tmp_tables where table_name IN (\'_panelbuttons\', \'_linkToButtons\') AND touched<\'' . $minus10->format('Y-m-d H:i') . '\'');
40
+
$sql->exec('delete from _tmp_tables where table_name SIMILAR TO \'\_%\' AND touched<\''
0 commit comments