Skip to content

Allow Table::addColumn() to use type from Column object again #2224

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

Merged
merged 1 commit into from
Sep 22, 2023

Conversation

othercorey
Copy link
Member

@othercorey othercorey commented Sep 22, 2023

refs #2218 (comment)

I think this was removed after fixing a test that passed an invalid null, but we should allow the Column to define the type.

@othercorey othercorey added this to the 0.15.x milestone Sep 22, 2023
@othercorey othercorey requested a review from ndm2 September 22, 2023 03:20
@ndm2
Copy link
Contributor

ndm2 commented Sep 22, 2023

Should the exception in that method maybe use $action->getColumn()->getType() instead of $type?

@othercorey
Copy link
Member Author

Should the exception in that method maybe use $action->getColumn()->getType() instead of $type?

That seems to make sense. The type can be invalid when defined by either Column or string.

@othercorey othercorey merged commit 26753bd into 0.x Sep 22, 2023
@othercorey othercorey deleted the table-nullable-type branch September 22, 2023 18:18
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