how to check if table exist in update procedure In Drupal 8/9, you can programmatically check if a specific table name exists in the database using the schema()->tableExists() method provided by the database API. Database API Drupal 9 Code Example Module Development hook_update