Wrap table names in curly braces.
This commit is contained in:
parent
b18395c18f
commit
d5a87aa3e8
|
@ -135,7 +135,7 @@ function farm_api_update_9000(&$sandbox) {
|
|||
|
||||
// Get all client_id values from the database.
|
||||
$client_ids = [];
|
||||
$result = \Drupal::database()->query('SELECT entity_id, client_id_value FROM consumer__client_id')->fetchAll();
|
||||
$result = \Drupal::database()->query('SELECT entity_id, client_id_value FROM {consumer__client_id}')->fetchAll();
|
||||
foreach ($result as $record) {
|
||||
$client_ids[$record->entity_id] = $record->client_id_value;
|
||||
}
|
||||
|
|
|
@ -62,7 +62,7 @@ function farm_lab_test_post_update_migrate_lab_terms(&$sandbox) {
|
|||
|
||||
// Query the database for all lab field data on logs.
|
||||
// Save it to $sandbox for future reference.
|
||||
$sandbox['log_map'] = \Drupal::database()->query('SELECT entity_id, lab_value FROM log__lab WHERE deleted = 0')->fetchAllKeyed(0);
|
||||
$sandbox['log_map'] = \Drupal::database()->query('SELECT entity_id, lab_value FROM {log__lab} WHERE deleted = 0')->fetchCol();
|
||||
|
||||
// Create taxonomy terms for each of the labs.
|
||||
// Add them to a term map in $sandbox for future reference.
|
||||
|
|
Loading…
Reference in New Issue