Projet

Général

Profil

Révision 76df55b7

Ajouté par Benjamin Luce il y a presque 9 ans

Weekly update of contrib modules

Voir les différences:

drupal7/sites/all/modules/i18n/i18n_string/i18n_string.install
29 29
    i18n_string_update_7001();
30 30
  }
31 31
  // Create new index in {locales_source}, performance improvement in sites with i18n.
32
  db_add_index('locales_source', 'textgroup_context', array('textgroup', 'context'));
32
  if (!db_index_exists('locales_source', 'textgroup_context')) {
33
    db_add_index('locales_source', 'textgroup_context', array('textgroup', array('context', 50)));
34
  }
33 35
}
34 36

  
35 37
/**
......
106 108
    ),
107 109
    'primary key' => array('lid'),
108 110
    'indexes' => array(
109
      'group_context' => array('textgroup', 'context'),
111
      'group_context' => array('textgroup', array('context', 50)),
110 112
    ),
111 113
  );
112 114
  return $schema;
......
238 240
 *  Create new index in {locales_source}, performance improvement in sites with i18n.
239 241
 */
240 242
function i18n_string_update_7002() {
241
  db_add_index('locales_source', 'textgroup_context', array('textgroup', 'context'));
243
  if (!db_index_exists('locales_source', 'textgroup_context')) {
244
    db_add_index('locales_source', 'textgroup_context', array('textgroup', array('context', 50)));
245
  }
242 246
}
243 247

  
244 248

  
......
269 273
 * Node type
270 274
 *  nodetype:type:[type]:[property] -> node:type:[type]:[property]
271 275
 *  Property names: title -> title_label
272
 */
276
 */

Formats disponibles : Unified diff