Error on uninstall

Created on 29 April 2023, about 1 year ago
Updated 11 August 2023, 11 months ago

Problem/Motivation

Upon uninstalling the Bookable Calendar module it throws this error when clicking on the Extend --> Uninstall tab (Drupal 9.5.8 / PHP 8.1).

Drupal\Core\Database\DatabaseExceptionWrapper: SQLSTATE[42S02]: Base table or view not found: 1146 Table '....booking' doesn't exist: SELECT "base_table"."id" AS "id", "base_table"."id" AS "base_table_id" FROM "booking" "base_table" LIMIT 1 OFFSET 0; Array ( ) in Drupal\Core\Entity\Query\Sql\Query->result() (line 272 of /var/www/.../web/core/lib/Drupal/Core/Entity/Query/Sql/Query.php).

No bookable calendar entities created before uninstall.

drush updb and drush cr did not help.

🐛 Bug report
Status

Fixed

Version

2.2

Component

Code

Created by

🇮🇪Ireland marksmith

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @marksmith
  • 🇮🇪Ireland marksmith

    This module appears to interfere (conflict) with the BAT module (Booking and Availability Management Tools for Drupal).

    Both create a *booking* table in the database upon install, which is removed on uninstall with all the consequences.

  • Assigned to josh.fabean
  • Status changed to Fixed 11 months ago
  • 🇺🇸United States josh.fabean

    Thank you for bringing this to my attention. Looked into it and there is no core way to flag a module as incompatible with another module. I updated documentation on the module page and the readme saying it's not compatible with BAT as we both created an entity called "Booking", I can probably fix this in the future but changing names of entities is a pretty big breaking changes so it would most likely have to be a 3x version of the module.

  • Status changed to Fixed 11 months ago
Production build 0.69.0 2024