actually create cache table in update hook

This commit is contained in:
Nathan Coad
2017-11-25 17:51:55 +11:00
parent 85249b475f
commit 6ff5ae7790

View File

@@ -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);
}
}
/**