Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Record::buildFields() returns prematurely #19

Open
clphillips opened this issue Jun 17, 2015 · 0 comments
Open

Record::buildFields() returns prematurely #19

clphillips opened this issue Jun 17, 2015 · 0 comments
Labels

Comments

@clphillips
Copy link
Contributor

Since Record::buildFields() also builds keys, it should ensure that keys is also empty before returning.

Currently it's impossible to alter just an index, without also altering fields.

$record->setKey(array('my_index'), 'index', null, false)
    ->alter('my_table'); 

Should produce:

ALERT TABLE `my_table` DROP INDEX `my_index`

Actual result:

ALERT TABLE `my_table` 
@clphillips clphillips added the bug label Jun 17, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant