--- includes/database/database.inc 2010-09-29 16:55:43.000000000 -0300 +++ includes/database/databaseNew.inc 2010-09-30 15:16:26.000000000 -0300 @@ -2587,6 +2587,7 @@ function db_condition($conjunction) { * A Schema API table definition array. */ function db_create_table($name, $table) { + drupal_alter('db_create_table', $table); return Database::getConnection()->schema()->createTable($name, $table); } @@ -2711,6 +2712,7 @@ function db_drop_table($table) { * @see db_change_field() */ function db_add_field($table, $field, $spec, $keys_new = array()) { + drupal_alter('db_add_field', $spec); return Database::getConnection()->schema()->addField($table, $field, $spec, $keys_new); } @@ -2887,6 +2889,7 @@ function db_drop_index($table, $name) { * but without the 'fields' element. */ function db_change_field($table, $field, $field_new, $spec, $keys_new = array()) { + drupal_alter('db_change_field', $spec); return Database::getConnection()->schema()->changeField($table, $field, $field_new, $spec, $keys_new); }