From e466b3e1c465bfee396d94df52aeaa5432e2152e Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Wed, 19 Mar 2008 07:36:28 +0000 Subject: - Patch #226881 by boydjd: fixed coding style issues. --- update.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'update.php') 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"); } -- cgit v1.2.3