Skip to content

Enable platformOptions to be considered for ColumnDiff (PostgreSQL jsonb support)#6693

Merged
derrabus merged 2 commits intodoctrine:4.2.xfrom
DanielBadura:enable-diff-on-platform-options
Jan 6, 2025
Merged

Enable platformOptions to be considered for ColumnDiff (PostgreSQL jsonb support)#6693
derrabus merged 2 commits intodoctrine:4.2.xfrom
DanielBadura:enable-diff-on-platform-options

Conversation

@DanielBadura
Copy link
Copy Markdown
Contributor

Q A
Type bug
Fixed issues #2541

Summary

Changing platformOptions can also result in schema changes. In my concrete example it was the jsonb option for the JsonType. I updated first only PostgreSQLPlatform to get feedback if there are any pitfalls in adding these platformOptions for consideration of schema changes, wdyt?

…eSQLPlatform to utilize this new option, add tests around add jsonb option to a json column
Copy link
Copy Markdown
Member

@derrabus derrabus left a comment

Choose a reason for hiding this comment

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

LGTM, once the tests pass.

@DanielBadura
Copy link
Copy Markdown
Contributor Author

@derrabus regarding tests: It seems my functional test for the ColumnDiff was in the wrong place as this class is executed with every Platform supported. For SQLite there is no change, so the test failed, which is correct. I moved the test to the PostgreSQL dedicated test class.

Not sure if I should add this to other platforms aswell as I'm not sure which platformOptions exist and are relevant there.

…case from general ComparatorTest class to the PostgreSQL dedicated one.

Fix cs
@DanielBadura DanielBadura force-pushed the enable-diff-on-platform-options branch from 97a9c02 to db3b402 Compare January 6, 2025 18:02
@derrabus derrabus merged commit 2a13dd0 into doctrine:4.2.x Jan 6, 2025
@derrabus
Copy link
Copy Markdown
Member

derrabus commented Jan 6, 2025

Thank you!

derrabus added a commit that referenced this pull request Jan 6, 2025
* 4.2.x:
  Enable platformOptions to be considered for ColumnDiff (PostgreSQL jsonb support) (#6693)
derrabus added a commit to derrabus/dbal that referenced this pull request Jan 6, 2025
* 4.3.x:
  Enable platformOptions to be considered for ColumnDiff (PostgreSQL jsonb support) (doctrine#6693)
  Ignore new PHPStan errors
  Cleanup obsolete PHPStan ignore rules (doctrine#6697)
  Add a `NumberType` that maps to the `BcMath\Number` value object (doctrine#6686)
  PHPStan 2.1.1 (doctrine#6690)
  PHPUnit 10.5.39 (doctrine#6692)
  PHPUnit 9.6.22 (doctrine#6691)
  Bump doctrine/.github from 6.0.0 to 7.1.0 (doctrine#6649)
  Bump doctrine/.github from 5.3.0 to 6.0.0 (doctrine#6642)
@DanielBadura DanielBadura deleted the enable-diff-on-platform-options branch January 6, 2025 19:10
derrabus added a commit to derrabus/dbal that referenced this pull request Jan 6, 2025
* 4.3.x:
  Enable platformOptions to be considered for ColumnDiff (PostgreSQL jsonb support) (doctrine#6693)
  Ignore new PHPStan errors
  Cleanup obsolete PHPStan ignore rules (doctrine#6697)
  Add a `NumberType` that maps to the `BcMath\Number` value object (doctrine#6686)
  PHPStan 2.1.1 (doctrine#6690)
  PHPUnit 10.5.39 (doctrine#6692)
  PHPUnit 9.6.22 (doctrine#6691)
  Bump doctrine/.github from 6.0.0 to 7.1.0 (doctrine#6649)
  Bump doctrine/.github from 5.3.0 to 6.0.0 (doctrine#6642)
@derrabus derrabus added this to the 4.2.2 milestone Jan 16, 2025
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jan 17, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants