-
Notifications
You must be signed in to change notification settings - Fork 116
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
Support phinx 0.15 requirement #638
Conversation
ae96b9e
to
f5407a2
Compare
14989a2
to
90f5e8c
Compare
I just changed the names to the new ones generated by the current phinx version for sqlite |
d3679d2
to
b870a63
Compare
b870a63
to
0636f98
Compare
Updated to require phinx 0.15.1 which fixes the PostgresAdapter. |
* @param array $options Column Options | ||
* @throws \InvalidArgumentException | ||
* @return $this | ||
*/ | ||
public function addColumn($columnName, $type = null, $options = []) | ||
public function addColumn(Column|string $columnName, $type, $options = []) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the type should stay nullable, just like in cakephp/phinx#2218 (comment). When a Column
object is provided, that object can hold the type.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok, let's fix it then. I don't see this in function in my PR comments, but a couple nullable types were dropped because they seemed to only allow invalid text data (string name + null type).
@ndm2 Merging this version so it unblocks phinx 0.15.1 and your PR. We can update the signature with phin 0.15.2 as needed |
There is a bug in PostgresAdapter::setConnection() where
useIdentity
isn't initialized. Testing with branch until fix is released.cakephp/phinx#2223