diff --git a/core/modules/locale/locale.compare.inc b/core/modules/locale/locale.compare.inc index bdd1c47..55597d1 100644 --- a/core/modules/locale/locale.compare.inc +++ b/core/modules/locale/locale.compare.inc @@ -89,8 +89,6 @@ function locale_translation_build_projects() { // Get the project list based on .info files. $projects = locale_translation_project_list(); - $transaction = db_transaction(); - // Mark all previous projects as disabled and store new project data. db_update('locale_project') ->fields(array( @@ -245,7 +243,7 @@ function locale_translation_default_translation_server() { * @param stdClass $project * Project object containing data to be inserted in the template. * @param string $template - * String containing place holders. Available placeholders: + * String containing placeholders. Available placeholders: * - "%project": Project name. * - "%version": Project version. * - "%core": Project core version. @@ -253,7 +251,7 @@ function locale_translation_default_translation_server() { * - "%filename": Project file name. * * @return string - * String with replaced place holders. + * String with replaced placeholders. */ function locale_translation_build_server_pattern($project, $template) { $variables = array( diff --git a/core/modules/locale/locale.install b/core/modules/locale/locale.install index 3aec999..39f1f0d 100644 --- a/core/modules/locale/locale.install +++ b/core/modules/locale/locale.install @@ -679,9 +679,59 @@ function locale_update_8010() { */ function locale_update_8011() { // Add a 'locale' cache table. - $table = drupal_get_schema_unprocessed('system', 'cache'); - $table['description'] = 'Cache table for the locale module to store various data.'; - db_create_table('cache_locale', $table); + db_create_table('cache_locale', array( + 'description' => 'Cache table for the locale module to store various data.', + 'fields' => array( + 'cid' => array( + 'description' => 'Primary Key: Unique cache ID.', + 'type' => 'varchar', + 'length' => 255, + 'not null' => TRUE, + 'default' => '', + ), + 'data' => array( + 'description' => 'A collection of data to cache.', + 'type' => 'blob', + 'not null' => FALSE, + 'size' => 'big', + ), + 'expire' => array( + 'description' => 'A Unix timestamp indicating when the cache entry should expire, or 0 for never.', + 'type' => 'int', + 'not null' => TRUE, + 'default' => 0, + ), + 'created' => array( + 'description' => 'A Unix timestamp indicating when the cache entry was created.', + 'type' => 'int', + 'not null' => TRUE, + 'default' => 0, + ), + 'serialized' => array( + 'description' => 'A flag to indicate whether content is serialized (1) or not (0).', + 'type' => 'int', + 'size' => 'small', + 'not null' => TRUE, + 'default' => 0, + ), + 'tags' => array( + 'description' => 'Space-separated list of cache tags for this entry.', + 'type' => 'text', + 'size' => 'big', + 'not null' => FALSE, + ), + 'checksum' => array( + 'description' => 'The tag invalidation sum when this entry was saved.', + 'type' => 'int', + 'not null' => TRUE, + 'default' => 0, + ), + ), + 'indexes' => array( + 'expire' => array('expire'), + ), + 'primary key' => array('cid'), + ); // Add locale_project table. db_create_table('locale_project', array(