Skip to content
Snippets Groups Projects
Commit e466b3e1 authored by Dries Buytaert's avatar Dries Buytaert
Browse files

- Patch #226881 by boydjd: fixed coding style issues.

parent e89ead0a
No related branches found
No related tags found
No related merge requests found
......@@ -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");
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment