From 00181ecb3958c67758d830e93b3bfc4d220a2d2d Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Thu, 30 Aug 2007 19:54:22 +0000 Subject: - Removing whitespace. --- update.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'update.php') diff --git a/update.php b/update.php index 393b3fdf7..6975fefba 100644 --- a/update.php +++ b/update.php @@ -60,11 +60,11 @@ function db_add_column(&$ret, $table, $column, $type, $attributes = array()) { $ret[] = update_sql("ALTER TABLE {". $table ."} ADD $column $type"); if (!empty($default)) { - $ret[] = update_sql("ALTER TABLE {". $table ."} ALTER $column SET $default"); + $ret[] = update_sql("ALTER TABLE {". $table ."} ALTER $column SET $default"); } if (!empty($not_null)) { - if (!empty($default)) { - $ret[] = update_sql("UPDATE {". $table ."} SET $column = $default_val"); + if (!empty($default)) { + $ret[] = update_sql("UPDATE {". $table ."} SET $column = $default_val"); } $ret[] = update_sql("ALTER TABLE {". $table ."} ALTER $column SET NOT NULL"); } -- cgit v1.2.3