Commit db1fa648 authored by Cédric Anne's avatar Cédric Anne Committed by Johan Cwiklinski

Timestamp migration should care only about glpi_% tables

parent ccd436a3
......@@ -71,6 +71,7 @@ class TimestampsCommand extends AbstractCommand {
],
'WHERE' => [
'information_schema.columns.table_schema' => $this->db->dbdefault,
'information_schema.columns.table_name' => ['LIKE', 'glpi_%'],
'information_schema.columns.data_type' => 'datetime'
],
'ORDER' => [
......
......@@ -1634,8 +1634,9 @@ class DBmysql {
'COUNT' => 'cpt',
'FROM' => 'information_schema.columns',
'WHERE' => [
'information_schema.columns.table_schema' => $DB->dbdefault,
'information_schema.columns.data_type' => ['datetime']
'information_schema.columns.table_schema' => $DB->dbdefault,
'information_schema.columns.table_name' => ['LIKE', 'glpi_%'],
'information_schema.columns.data_type' => ['datetime']
]
])->next();
return (int)$result['cpt'];
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment