Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Fixed 'drop index' #8

Merged
merged 1 commit into from

2 participants

@Bishop

No description provided.

@jmhobbs jmhobbs merged commit 787f803 into jmhobbs:master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Mar 2, 2012
  1. @Bishop

    Fixed drop index

    Bishop authored
This page is out of date. Refresh to see the latest.
Showing with 1 addition and 1 deletion.
  1. +1 −1  classes/kohana/migration/statement/changetable.php
View
2  classes/kohana/migration/statement/changetable.php
@@ -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();
Something went wrong with that request. Please try again.