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

Make removeIndex work with one column as a string #1437

Merged
merged 2 commits into from
Sep 14, 2018

Conversation

martijngastkemper
Copy link
Contributor

No description provided.

* @return DropIndex
*/
public static function build(Table $table, array $columns = [])
public static function build(Table $table, $columns = [])
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you leave this as-is and make the casting in the calling sites instead?

* @return \Phinx\Db\Table
*/
public function removeIndex(array $columns)
public function removeIndex($columns)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is ok, just need to cast to array when building the action

@lorenzo
Copy link
Member

lorenzo commented Sep 14, 2018

Thanks again!

@lorenzo lorenzo merged commit 110ef5b into cakephp:master Sep 14, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants