Skip to content

Commit

Permalink
Change Oracle "drop column" syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
lucassouza1 committed Jun 21, 2011
1 parent 48c78a2 commit 7610d99
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Doctrine/DBAL/Platforms/OraclePlatform.php
Expand Up @@ -555,7 +555,7 @@ public function getAlterTableSQL(TableDiff $diff)
$fields[] = $column->getQuotedName($this);
}
if (count($fields)) {
$sql[] = 'ALTER TABLE ' . $diff->name . ' DROP COLUMN ' . implode(', ', $fields);
$sql[] = 'ALTER TABLE ' . $diff->name . ' DROP (' . implode(', ', $fields).')';
}

if ($diff->newName !== false) {
Expand Down

0 comments on commit 7610d99

Please sign in to comment.