? .cache
? .project
? .settings
? 338586-add-field-undefined-function.patch
? 338586-add-field-undefined-function_0.patch
? do_not_include_all_files_when_configured.patch
? pgsql_2.patch
? sites/sites.php
? sites/sub.drupal7
? sites/all/modules
? sites/all/themes
? 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.2
diff -u -p -r1.2 schema.inc
--- includes/database/pgsql/schema.inc	15 Sep 2008 20:48:07 -0000	1.2
+++ includes/database/pgsql/schema.inc	24 Nov 2008 22:58:47 -0000
@@ -247,7 +247,7 @@ class DatabaseSchema_pgsql extends Datab
       $spec['not null'] = FALSE;
     }
     $query = 'ALTER TABLE {' . $table . '} ADD COLUMN ';
-    $query .= $this->_createFieldSql($field, $this->_processField($spec));
+    $query .= $this->createFieldSql($field, $this->processField($spec));
     $ret[] = update_sql($query);
     if (isset($spec['initial'])) {
       // All this because update_sql does not support %-placeholders.
Index: modules/simpletest/tests/schema.test
===================================================================
RCS file: /cvs/drupal/drupal/modules/simpletest/tests/schema.test,v
retrieving revision 1.3
diff -u -p -r1.3 schema.test
--- modules/simpletest/tests/schema.test	16 Nov 2008 19:41:14 -0000	1.3
+++ modules/simpletest/tests/schema.test	24 Nov 2008 22:58:47 -0000
@@ -45,7 +45,7 @@ class SchemaTestCase extends DrupalWebTe
     $this->assertFalse($this->tryInsert(), t('Insert without a default failed.'));
 
     // Add a default value to the column.
-    db_field_set_default($ret, 'test_table', 'test_field', 0);
+    db_field_set_default($ret, 'test_table', 'test_field', 1);
     // The insert should now succeed.
     $this->assertTrue($this->tryInsert(), t('Insert with a default succeeded.'));
 
@@ -57,7 +57,7 @@ class SchemaTestCase extends DrupalWebTe
     // Rename the table.
     db_rename_table($ret, 'test_table', 'test_table2');
     // We need the default so that we can insert after the rename.
-    db_field_set_default($ret, 'test_table2', 'test_field', 0);
+    db_field_set_default($ret, 'test_table2', 'test_field', 1);
     $this->assertFalse($this->tryInsert(), t('Insert into the old table failed.'));
     $this->assertTrue($this->tryInsert('test_table2'), t('Insert into the new table succeeded.'));
 
@@ -71,8 +71,8 @@ class SchemaTestCase extends DrupalWebTe
 
     // Recreate the table.
     db_create_table($ret, 'test_table', $table_specification);
-    db_field_set_default($ret, 'test_table', 'test_field', 0);
-    db_add_field($ret, 'test_table', 'test_serial', array('type' => 'int', 'not null' => TRUE, 'default' => 0));
+    db_field_set_default($ret, 'test_table', 'test_field', 1);
+    db_add_field($ret, 'test_table', 'test_serial', array('type' => 'int', 'not null' => TRUE));
 
     // Change the new field to a serial column.
     db_change_field($ret, 'test_table', 'test_serial', 'test_serial', array('type' => 'serial', 'not null' => TRUE), array('primary key' => array('test_serial')));
