Skip to content

Commit

Permalink
Merge pull request #324 from tomolimo/master
Browse files Browse the repository at this point in the history
Added TABLE_SCHEMA = $DB->dbdefault
  • Loading branch information
tomolimo authored Jul 12, 2019
2 parents 5902ce6 + 518fc84 commit 2204722
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions inc/toolbox.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -126,8 +126,9 @@ public function fixFieldsNames(Migration $migration, $condition) {
'SELECT DISTINCT' => 'TABLE_NAME',
'FROM' => 'INFORMATION_SCHEMA.COLUMNS',
'WHERE' => [
'TABLE_NAME' => ['LIKE', 'glpi_plugin_fields_%'],
'COLUMN_NAME' => $old_field_name
'TABLE_SCHEMA' => $DB->dbdefault,
'TABLE_NAME' => ['LIKE', 'glpi_plugin_fields_%'],
'COLUMN_NAME' => $old_field_name
],
]
);
Expand Down

0 comments on commit 2204722

Please sign in to comment.