=== modified file 'planet.install'
--- planet.install	2009-03-17 03:26:31 +0000
+++ planet.install	2009-03-19 15:37:10 +0000
@@ -144,25 +144,38 @@
 
 function planet_update_1() {
   $ret = array();
-  db_add_column($ret, 'planet_feeds', 'hash', 'varchar(32)', array('description' => t("A hash of the feed's headers.")));
+  db_add_field($ret, 'planet_feeds', 'hash', array(
+        'type' => 'varchar',
+        'length' => 32,
+        'description' => t("A hash of the feed's headers."),
+      )
+    );
   return $ret;
 }
 
 function planet_update_2() {
   $ret = array();
-  db_add_column($ret, 'planet_items', 'iid', 'varchar(32)', array('not null' => TRUE, 'description' => t("md5 of the feed item's title and body.")));
+  db_add_field($ret, 'planet_items', 'iid', array(
+        'type' => 'varchar',
+        'length' => 32,
+        'not null' => TRUE,
+        'description' => t("md5 of the feed item's title and body."),
+      )
+    );
   return $ret;
 }
 
 function planet_update_3() {
   $ret = array();
-  db_add_column($ret, 'planet_feeds', 'error', 'int(1)', array('default' => 0, 'not null' => TRUE));
+  db_add_field($ret, 'planet_feeds', 'error', array(
+        'type' => 'int',
+        'not null' => TRUE,
+        'default' => 0,
+        'length' => 1,
+        'description' => t("Whether the feed is throwing errors or not."),
+      )
+    );
+  db_add_index($ret, 'planet_feeds', 'error', array('error'));
   
-  if ($GLOBALS['db_type'] == 'pgsql') {
-    db_query("CREATE INDEX {planet_feeds}_error_idx ON {planet_feeds} (error)");
-  }
-  else {
-    db_query("CREATE INDEX error ON {planet_feeds} (error)");
-  }  
   return $ret;  
 }
\ No newline at end of file

