diff options
author | Dries Buytaert <dries@buytaert.net> | 2007-08-30 19:54:22 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2007-08-30 19:54:22 +0000 |
commit | 00181ecb3958c67758d830e93b3bfc4d220a2d2d (patch) | |
tree | 451e4b4aff8d501a73dbb8095e8521b965a1e758 /update.php | |
parent | 78236ada52096956f6f4693dc74163929687e31f (diff) | |
download | brdo-00181ecb3958c67758d830e93b3bfc4d220a2d2d.tar.gz brdo-00181ecb3958c67758d830e93b3bfc4d220a2d2d.tar.bz2 |
- Removing whitespace.
Diffstat (limited to 'update.php')
-rw-r--r-- | update.php | 6 |
1 files changed, 3 insertions, 3 deletions
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"); } |