summaryrefslogtreecommitdiff
path: root/includes
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2007-05-25 20:52:44 +0000
committerDries Buytaert <dries@buytaert.net>2007-05-25 20:52:44 +0000
commit633540ef8c7e2a2300caa18f27db6954423a93b2 (patch)
treebd356c7eb2706e39a991d04e3a79afb14645d8cd /includes
parent1d7037a756f2029548be24f9a1e5df4ed3f817ec (diff)
downloadbrdo-633540ef8c7e2a2300caa18f27db6954423a93b2.tar.gz
brdo-633540ef8c7e2a2300caa18f27db6954423a93b2.tar.bz2
- Patch #144765 by ChrisKennedy, drewish, bjaspan et al: schema fixes.
Diffstat (limited to 'includes')
-rw-r--r--includes/database.mysql-common.inc7
1 files changed, 1 insertions, 6 deletions
diff --git a/includes/database.mysql-common.inc b/includes/database.mysql-common.inc
index c35c90d45..f47d2a8d5 100644
--- a/includes/database.mysql-common.inc
+++ b/includes/database.mysql-common.inc
@@ -209,7 +209,7 @@ function db_drop_table(&$ret, $table) {
* The field specification array, as taken from a schema definition
*/
function db_add_field(&$ret, $table, $field, $spec) {
- $query = 'ALTER TABLE {'. $table .'} ADD '. $field .' ';
+ $query = 'ALTER TABLE {'. $table .'} ADD ';
$query .= _db_create_field_sql($field, _db_process_field($spec));
$ret[] = update_sql($query);
}
@@ -365,11 +365,6 @@ function db_drop_index(&$ret, $table, $name) {
/**
* Change a field definition.
*
- * Remember that changing a field definition involves adding a new field
- * and dropping an old one. This means that any indices, primary keys and
- * sequences from serial-type fields are dropped and might need to be
- * recreated.
- *
* @param $ret
* Array to which query results will be added.
* @param $table