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

Migration error #45

Closed
laxity7 opened this issue Aug 21, 2015 · 2 comments
Closed

Migration error #45

laxity7 opened this issue Aug 21, 2015 · 2 comments

Comments

@laxity7
Copy link

laxity7 commented Aug 21, 2015

When applying of migration there is an error

PHP Strict Warning 'yii\base\ErrorException' with message 'Declaration of m140501_075311_add_oauth2_server::primaryKey() should be compatible with yii\db\Migration::primaryKey($length = NULL)'

Need set Null on default in primaryKey function public function primaryKey($columns = null) or rename function

@nadeemse
Copy link

Thanks Man,
$columns = null save my hour.

@ruslanbes
Copy link
Contributor

ruslanbes commented Jul 12, 2016

Setting $columns = null worked for me too (Postgres 9.4). Although seems very odd. The parent function clearly expects int and not an array of columns. It seems renaming to avoid this conflict is the correct solution, created PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants