Skip to content
Snippets Groups Projects
Commit 94976aed authored by Randy Kolenko's avatar Randy Kolenko
Browse files

Issue #3390065: Index column size too large. Add precaution around adding an...

Issue #3390065: Index column size too large. Add precaution around adding an index that may already exist.
parent ec5dbe3a
No related branches found
No related tags found
No related merge requests found
......@@ -224,9 +224,14 @@ function maestro_update_8009() {
$field_storage->save();
}
$indexsql = "CREATE INDEX imaestro_queue_token ON {maestro_queue} (token) COMMENT '' ALGORITHM DEFAULT LOCK DEFAULT";
$database = \Drupal::database();
$database->query($indexsql);
try {
$indexsql = "CREATE INDEX imaestro_queue_token ON {maestro_queue} (token) COMMENT '' ALGORITHM DEFAULT LOCK DEFAULT";
$database = \Drupal::database();
$database->query($indexsql);
}
catch(\Exception $e) {
//Ignore the error as the index already exists
}
drupal_flush_all_caches();
}
\ No newline at end of file
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