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

Support phinx 0.15 requirement #638

Merged
merged 2 commits into from
Sep 22, 2023
Merged

Support phinx 0.15 requirement #638

merged 2 commits into from
Sep 22, 2023

Conversation

othercorey
Copy link
Member

@othercorey othercorey commented Sep 19, 2023

There is a bug in PostgresAdapter::setConnection() where useIdentity isn't initialized. Testing with branch until fix is released.

cakephp/phinx#2223

@othercorey othercorey added this to the 4.x (CakePHP 5) milestone Sep 19, 2023
@othercorey othercorey marked this pull request as draft September 19, 2023 11:34
@othercorey othercorey force-pushed the support-phinx-0.15 branch 2 times, most recently from 14989a2 to 90f5e8c Compare September 19, 2023 12:20
@LordSimal
Copy link
Contributor

I just changed the names to the new ones generated by the current phinx version for sqlite

@othercorey othercorey marked this pull request as ready for review September 22, 2023 02:11
@othercorey
Copy link
Member Author

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 = [])
Copy link
Contributor

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.

Copy link
Member Author

@othercorey othercorey Sep 22, 2023

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).

@othercorey othercorey merged commit 9cc902d into 4.x Sep 22, 2023
9 of 10 checks passed
@othercorey othercorey deleted the support-phinx-0.15 branch September 22, 2023 03:12
@othercorey
Copy link
Member Author

@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

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

Successfully merging this pull request may close these issues.

3 participants