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

Add existing comment to column object for mysql #2174

Merged
merged 2 commits into from
Mar 1, 2023

Conversation

alex-jonas
Copy link
Contributor

@alex-jonas alex-jonas commented Feb 6, 2023

When using the Table::getColumn($name) method you would expect that afterwards the comment is available in the Column object.

At least in Mysql this is not the case... therefore my change.

@dereuromark
Copy link
Member

Looks good to me

@othercorey
Copy link
Member

Looks ok to me. Do we have a test harness for this information we can add comments to?

Copy link
Member

@MasterOdin MasterOdin left a comment

Choose a reason for hiding this comment

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

Please add a row for testing the comment field to this test:

public function testGetColumns($colName, $type, $options)

You are right we don't set the comment for any of the adapters I think. Would you want to take a stab at adding that in for them?

@alex-jonas
Copy link
Contributor Author

Would you want to take a stab at adding that in for them?

Sorry, have not much idea about the other adapters

@alex-jonas alex-jonas requested review from MasterOdin and removed request for othercorey February 17, 2023 16:30
@MasterOdin MasterOdin changed the title Add existing comment to column-object Add existing comment to column object for mysql Mar 1, 2023
@MasterOdin MasterOdin merged commit 472a6bb into cakephp:0.x Mar 1, 2023
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.

5 participants