Skip to content
This repository has been archived by the owner on Sep 26, 2019. It is now read-only.

Commit

Permalink
Fixed drop index
Browse files Browse the repository at this point in the history
  • Loading branch information
Bishop committed Mar 2, 2012
1 parent 39cd9cc commit 1a279e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion classes/kohana/migration/statement/changetable.php
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ public function toSQL () {
$alters[] = 'ADD ' . $index->toSQL();
}
foreach( $this->_removeIndexes as $name) {
$alters[] = 'DROP ' . $name;
$alters[] = 'DROP INDEX ' . $name;
}
foreach( $this->_addKeys as $name => $index ) {
$alters[] = 'ADD ' . $index->toSQL();
Expand Down

0 comments on commit 1a279e7

Please sign in to comment.