Skip to content

Support Cake\I18n\Date and DateTime for inserts #2348

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 11 commits into from
Apr 17, 2025
Merged

Conversation

dereuromark
Copy link
Member

@dereuromark dereuromark force-pushed the dereuromark-patch-1 branch from bb7e2fa to 58e8476 Compare April 11, 2025 16:47
@dereuromark
Copy link
Member Author

@MasterOdin Can we tag a new patch release after this, please? So we are good for Core migrations plugin to also be green?

@dereuromark
Copy link
Member Author

Feel free to add a test if you have some time.
Once this is merged, the migrations PR should also be green I guess.

@MasterOdin
Copy link
Member

TIL that instanceof will not error if the right-hand operator points at a class that doesn't exist in the current environment.

So cakephp/i18n just needs to be a require-dev entry for the linter and analyzer to pass, but doesn't need to be there for downstream consumers (unless they want to use it for bulk inserts).

@dereuromark dereuromark mentioned this pull request Apr 16, 2025
@dereuromark
Copy link
Member Author

I double checked: cakephp/migrations#843 green :)

Signed-off-by: Matthew Peveler <matt.peveler@gmail.com>
@MasterOdin MasterOdin force-pushed the dereuromark-patch-1 branch from 92f349b to c9aca99 Compare April 17, 2025 16:02
Signed-off-by: Matthew Peveler <matt.peveler@gmail.com>
@MasterOdin MasterOdin changed the title Fix Date/Datetime seeding Support Cake\I18n\Date and DateTime for inserts Apr 17, 2025
@MasterOdin MasterOdin force-pushed the dereuromark-patch-1 branch from 9d18c2f to 3e2837f Compare April 17, 2025 16:55
Signed-off-by: Matthew Peveler <matt.peveler@gmail.com>
@MasterOdin MasterOdin force-pushed the dereuromark-patch-1 branch from 3e2837f to 8909615 Compare April 17, 2025 17:01
@dereuromark
Copy link
Member Author

Given the different ms before/after the regex was probably a good idea.
But if it works out now like this, fair enough :)

@dereuromark
Copy link
Member Author

Should we squash merge this?

Signed-off-by: Matthew Peveler <matt.peveler@gmail.com>
@MasterOdin MasterOdin merged commit edd6178 into 0.x Apr 17, 2025
12 checks passed
@MasterOdin MasterOdin deleted the dereuromark-patch-1 branch April 17, 2025 17:32
@dereuromark
Copy link
Member Author

Do you think we could make a new release?

@MasterOdin
Copy link
Member

MasterOdin commented Apr 17, 2025

Should we squash merge this?

My preference is always to squash on merge to main (or 0.x here) so that the history for main remains clean, while still have the PRs to see the full intermediary history of a given commit on main.

Do you think we could make a new release?

Done: https://github.com/cakephp/phinx/releases/tag/0.16.7

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.

2 participants