File tree Expand file tree Collapse file tree 1 file changed +16
-1
lines changed
Expand file tree Collapse file tree 1 file changed +16
-1
lines changed Original file line number Diff line number Diff line change 11<?php
22/**
33 * @file
4- * Install and uninstall functions for the Gist Filter module.
4+ * Install, uninstall and update functions for the Gist Filter module.
55 */
66
77/**
@@ -13,3 +13,18 @@ function gist_filter_schema() {
1313 $schema['cache_gists'] = backdrop_get_schema_unprocessed('system', 'cache');
1414 return $schema;
1515}
16+
17+ /**
18+ * Implements hook_update_N().
19+ */
20+ function gist_filter_update_1200() {
21+ // We only need to add this for people upgrading from Drupal 7 who already
22+ // have the module installed. This table has been in Backdrop from the start,
23+ // so anyone installing new in Backdrop does not need this update.
24+ if (!db_table_exists('cache_gists')) {
25+ // Define a separate cache for gists so we have more control over when
26+ // the cached gists are cleared.
27+ $schema['cache_gists'] = backdrop_get_schema_unprocessed('system', 'cache');
28+ return $schema;
29+ }
30+ }
You can’t perform that action at this time.
0 commit comments