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

fix(core): allow users to specify createdAt in updateOnDuplicate #17379

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

LJ1102
Copy link
Contributor

@LJ1102 LJ1102 commented Jun 13, 2024

Fixes issue #17347

Pull Request Checklist

  • Have you added new tests to prevent regressions?
  • If a documentation update is necessary, have you opened a PR to the documentation repository?
  • Did you update the typescript typings accordingly (if applicable)?
  • Does the description below contain a link to an existing issue (Closes #[issue]) or a description of the issue you are solving?
  • Does the name of your PR follow our conventions?

Description of Changes

Allows to provide createdAt field in updateOnDuplicate option to enable updating the createdAt timestamp on duplicate. In older versions (<2018) it was possible to provide a boolean to enable all fields to be updated on duplicate, however this behavior is not supported anymore and users need to explicitly provide a list of field names allowing finer grained control over what's updated. The explicit exclusion of createdAt is thus no longer necessary and simply a remainder of the old, removed functionality.

List of Breaking Changes

@LJ1102 LJ1102 requested a review from a team as a code owner June 13, 2024 11:36
@LJ1102 LJ1102 requested review from ephys and WikiRik June 13, 2024 11:36
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.

None yet

1 participant