From 6ff5ae7790e29172c41a2e0820fa6f17a7d39223 Mon Sep 17 00:00:00 2001 From: Nathan Coad Date: Sat, 25 Nov 2017 17:51:55 +1100 Subject: [PATCH] actually create cache table in update hook --- booking.install | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) 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); + } } /**