actually create cache table in update hook
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user