? .buildpath
? .project
? .settings
? sites/default/files
? sites/default/settings.php
Index: includes/database/pgsql/schema.inc
===================================================================
RCS file: /cvs/drupal/drupal/includes/database/pgsql/schema.inc,v
retrieving revision 1.41
diff -u -p -r1.41 schema.inc
--- includes/database/pgsql/schema.inc	14 Dec 2010 19:33:22 -0000	1.41
+++ includes/database/pgsql/schema.inc	26 Dec 2010 02:48:47 -0000
@@ -487,6 +487,12 @@ class DatabaseSchema_pgsql extends Datab
       $typecast = $spec['pgsql_type'];
     }
 
+    if(!in_array($spec['pgsql_type'], array('int', 'smallint', 'bigint', 'double precision', 'real', 'numeric', 'serial'))) {
+      if($this->constraintExists($table, $field . '_check')) {
+        $this->connection->query('ALTER TABLE {' . $table . '} DROP CONSTRAINT "' . $this->prefixNonTable($table, $field, 'check') . '"');
+      }
+    }
+
     $this->connection->query('ALTER TABLE {' . $table . '} ALTER "' . $field . '" TYPE ' . $typecast . ' USING "' . $field . '"::' . $typecast);
 
     if (isset($spec['not null'])) {
