Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 16 additions & 1 deletion gist_filter.install
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php
/**
* @file
* Install and uninstall functions for the Gist Filter module.
* Install, uninstall and update functions for the Gist Filter module.
*/

/**
Expand All @@ -13,3 +13,18 @@ function gist_filter_schema() {
$schema['cache_gists'] = backdrop_get_schema_unprocessed('system', 'cache');
return $schema;
}

/**
* Implements hook_update_N().
*/
function gist_filter_update_1200() {
// We only need to add this for people upgrading from Drupal 7 who already
// have the module installed. This table has been in Backdrop from the start,
// so anyone installing new in Backdrop does not need this update.
if (!db_table_exists('cache_gists')) {
// Define a separate cache for gists so we have more control over when
// the cached gists are cleared.
$schema['cache_gists'] = backdrop_get_schema_unprocessed('system', 'cache');
return $schema;
}
}