diff --git a/booking.install b/booking.install index fb42c02..3e787ac 100644 --- a/booking.install +++ b/booking.install @@ -763,8 +763,12 @@ function booking_update_7250() { /** * Add custom cache table */ -function booking_update_7251() { - $schema['cache_booking'] = drupal_get_schema_unprocessed('system', 'cache'); +function booking_update_7252() { + if (!db_table_exists('cache_booking')) { + $schema = drupal_get_schema_unprocessed('system', 'cache'); + $schema['description'] = 'Cache table used by booking module.'; + db_create_table('cache_booking', $schema); + } } /**