diff options
author | Dries Buytaert <dries@buytaert.net> | 2006-01-22 07:30:47 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2006-01-22 07:30:47 +0000 |
commit | e21b5be8d890e0d48f8fab37055c8337d9042600 (patch) | |
tree | 71904d6ce092e327e1be3ee82dab15d1fd89eef4 /update.php | |
parent | b6b98bb60d7cf985766ebadee22875f9b409c2bb (diff) | |
download | brdo-e21b5be8d890e0d48f8fab37055c8337d9042600.tar.gz brdo-e21b5be8d890e0d48f8fab37055c8337d9042600.tar.bz2 |
- Patch #45747 by Cvbge: documentation improvement + added primary key that got lost
Diffstat (limited to 'update.php')
-rw-r--r-- | update.php | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/update.php b/update.php index 136058f5a..55c345b1e 100644 --- a/update.php +++ b/update.php @@ -78,6 +78,11 @@ function db_add_column(&$ret, $table, $column, $type, $attributes = array()) { * Changes a column definition. Uses syntax appropriate for PostgreSQL. * Saves result of SQL commands in $ret array. * + * Please remember, that changing column definition involves adding new column + * and dropping old one. This means that any indexes, primary keys and + * sequences from the serial-type columns are dropped and might need to be + * recreated. + * * @param $ret * Array to which results will be added. * @param $table @@ -91,7 +96,7 @@ function db_add_column(&$ret, $table, $column, $type, $attributes = array()) { * @param $attributes * Additional optional attributes. Recognized atributes: * - not null => TRUE/FALSE - * - default => NULL/FALSE/value (with or without '', it wont' be added) + * - default => NULL/FALSE/value (with or without '', it won't be added) * @return * nothing, but modifies $ret parametr. */ |