Index: openlayers.install
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/openlayers/openlayers.install,v
retrieving revision 1.12.2.2
diff -u -p -r1.12.2.2 openlayers.install
--- openlayers.install	26 Sep 2009 22:10:45 -0000	1.12.2.2
+++ openlayers.install	20 Jan 2010 22:29:20 -0000
@@ -180,11 +180,9 @@ function openlayers_schema() {
 }
 
 /**
- * Implementation of hook_update_n()
- *
- * Updates OpenLayers from 6-1.x to 6-2.x
+ * Adjust presets table.
  */
-function openlayers_update_6200() {
+function openlayers_update_6001() {
   $ret = array();
 
   // Alter presets table.
@@ -205,14 +203,20 @@ function openlayers_update_6200() {
     array('type' => 'text', 'not null' => TRUE),
     array()
   );
+  return $ret;
+}
+
+/**
+ * Add any new tables.
+ */
+function openlayers_update_6002() {
+  $ret = array();
 
-  // Ensure that all tables are installed
   $schema = drupal_get_schema_unprocessed('openlayers');
   foreach ($schema as $name => $table) {
     if (!db_table_exists($name)) {
       db_create_table($ret, $name, $table);
     }
   }
-
   return $ret;
 }
