You are here

function openlayers_update_7205 in Openlayers 7.2

Change the case of machine_name for layers, maps and styles. Warning, it can break things.

File

./openlayers.install, line 394
This file holds the functions for the installing and enabling of the openlayers module.

Code

function openlayers_update_7205() {
  db_query('UPDATE {openlayers_layers} SET name = LOWER(name);');
  db_query('UPDATE {openlayers_styles} SET name = LOWER(name);');
  db_query('UPDATE {openlayers_maps} SET name = LOWER(name);');
}