The update to Drupal Core 8.6 renames the table for `taxonomy__term__hierarchy` to `taxonomy__term__parents`. This can cause an error if you try to refresh the cache before running update hooks. Simply running the updates first will resolve the issue.