diff --git a/ctools.install b/ctools.install index 335911f..fcec87a 100644 --- a/ctools.install +++ b/ctools.install @@ -283,3 +283,16 @@ function ctools_update_7002() { // Removed due to alternative database configuration issues. // @see https://www.drupal.org/project/ctools/issues/2941920 } + +/** + * Revert the length of the ctools_object_cache.name column back to 128. + */ +function ctools_update_7003() { + db_delete('ctools_object_cache')->execute(); + db_change_field('ctools_object_cache', 'name', 'name', array( + 'type' => 'varchar', + 'length' => '128', + 'not null' => TRUE, + 'description' => 'The name of the object this cache is attached to.', + )); +}