Index: httpbl.install
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/httpbl/httpbl.install,v
retrieving revision 1.2.2.4
diff -b -u -p -r1.2.2.4 httpbl.install
--- httpbl.install	24 Aug 2007 19:22:02 -0000	1.2.2.4
+++ httpbl.install	27 Apr 2008 04:54:48 -0000
@@ -1,10 +1,13 @@
 <?php
-// $Id: httpbl.install,v 1.2.2.4 2007/08/24 19:22:02 praseodym Exp $
+// $Id: httpbl.install,v 1.2.2.3 2007/05/20 14:12:49 praseodym Exp $
 
 /**
  * Implementation of hook_install().
  */
 function httpbl_install() {
+  switch ($GLOBALS['db_type']) {
+    case 'mysql':
+    case 'mysqli':
   db_query("CREATE TABLE {httpbl} (
     hostname varchar(128) NOT NULL,
     status tinyint(2) NOT NULL default '0',
@@ -12,6 +15,16 @@ function httpbl_install() {
     PRIMARY KEY (hostname),
     INDEX (expire)
   ) /*!40100 DEFAULT CHARACTER SET UTF8 */ ");
+      break;
+    case 'pgsql':
+      db_query("CREATE TABLE {httpbl} (
+        hostname varchar(128) NOT NULL PRIMARY KEY,
+        status smallint NOT NULL default 0,
+        expire int NOT NULL default 0
+        );");
+      db_query("CREATE INDEX {httpbl}_expire_idx on {httpbl} (expire);");
+      break;
+  }
 }
 
 /**
@@ -24,7 +37,7 @@ function httpbl_uninstall() {
   variable_del('httpbl_footer');
   variable_del('httpbl_link');
   variable_del('httpbl_logging');
-  variable_del('httpbl_threatlevels');
+  variable_del('httpbl_threatlevel');
   variable_del('httpbl_message_black');
   variable_del('httpbl_message_grey');
   variable_del('httpbl_word');
