diff options
author | Dries Buytaert <dries@buytaert.net> | 2008-03-19 07:36:28 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2008-03-19 07:36:28 +0000 |
commit | e466b3e1c465bfee396d94df52aeaa5432e2152e (patch) | |
tree | f044a9eff01222b82211df374536853ff62be984 /update.php | |
parent | e89ead0ae2e1f0f64a339a260cc4edc541e09f64 (diff) | |
download | brdo-e466b3e1c465bfee396d94df52aeaa5432e2152e.tar.gz brdo-e466b3e1c465bfee396d94df52aeaa5432e2152e.tar.bz2 |
- Patch #226881 by boydjd: fixed coding style issues.
Diffstat (limited to 'update.php')
-rw-r--r-- | update.php | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/update.php b/update.php index 457593339..1db7779a6 100644 --- a/update.php +++ b/update.php @@ -125,8 +125,12 @@ function db_change_column(&$ret, $table, $column, $column_new, $type, $attribute $ret[] = update_sql("ALTER TABLE {". $table ."} RENAME $column TO ". $column ."_old"); $ret[] = update_sql("ALTER TABLE {". $table ."} ADD $column_new $type"); $ret[] = update_sql("UPDATE {". $table ."} SET $column_new = ". $column ."_old"); - if ($default) { $ret[] = update_sql("ALTER TABLE {". $table ."} ALTER $column_new SET $default"); } - if ($not_null) { $ret[] = update_sql("ALTER TABLE {". $table ."} ALTER $column_new SET NOT NULL"); } + if ($default) { + $ret[] = update_sql("ALTER TABLE {". $table ."} ALTER $column_new SET $default"); + } + if ($not_null) { + $ret[] = update_sql("ALTER TABLE {". $table ."} ALTER $column_new SET NOT NULL"); + } $ret[] = update_sql("ALTER TABLE {". $table ."} DROP ". $column ."_old"); } |