Commit 7497d70a authored by tstoeckler's avatar tstoeckler

Issue #1347214 by rfay: Improve update function 7200.

parent c5515bd1
Libraries 7.x-2.x, xxxx-xx-xx
-----------------------------
#1347214 by rfay: Improve update function 7200.
#1323530 by tstoeckler: Document libraries_get_version() pattern matching.
#1325524 by sun, Rob Loach, tstoeckler: Statically cache libraries_detect().
#1321372 by Rob Loach: Provide a 'post-load' callback group.
......
......@@ -10,7 +10,7 @@
*/
function libraries_schema() {
$schema['cache_libraries'] = drupal_get_schema_unprocessed('system', 'cache');
$schema['cache_libraries']['description'] = 'Cache table to store library information';
$schema['cache_libraries']['description'] = 'Cache table to store library information.';
return $schema;
}
......@@ -18,8 +18,10 @@ function libraries_schema() {
* Create the 'cache_libraries' table.
*/
function libraries_update_7200() {
// Note that previous versions of this function created the table with a
// different table comment.
if (!db_table_exists('cache_libraries')) {
$specs = drupal_get_schema_unprocessed('system', 'cache');
db_create_table('cache_libraries', $specs);
$specs = libraries_schema();
db_create_table('cache_libraries', $specs['cache_libraries']);
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment