diff --git a/openlayers.install b/openlayers.install index 9cc64d7..49ffd95 100644 --- a/openlayers.install +++ b/openlayers.install @@ -119,9 +119,6 @@ function openlayers_schema() { ), ), 'primary key' => array('name'), - 'indexes' => array( - 'name' => array('name'), - ), ); // Styles table (ctools extras) $schema['openlayers_styles'] = array( @@ -167,9 +164,6 @@ function openlayers_schema() { ), ), 'primary key' => array('name'), - 'indexes' => array( - 'name' => array('name'), - ), ); return $schema; } @@ -295,4 +289,12 @@ function openlayers_update_7201() { // Set default map variable variable_set('openlayers_default_map', variable_get('openlayers_default_preset', 'default')); variable_del('openlayers_default_preset'); -} \ No newline at end of file +} + +/** + * Drop name indexes duplicates of primary key. + */ +function openlayers_update_7202() { + db_drop_index('openlayers_layers', 'name'); + db_drop_index('openlayers_styles', 'name'); +}