- Issue created by @cswan
- πΊπΈUnited States owenbush Denver, CO
I think this must be a hangover from:
https://git.drupalcode.org/project/recurring_events/-/commit/6bdc2517395...
I'll have to think how to resolve this.
- πΊπΈUnited States cswan
Hi!
Thank you for responding to this ticket.
I found the following solution that had seemed to work for us. Do you think that this is a good solution?:
https://www.drupal.org/node/3034742#comment-13999920 βThank you for your help!
- First commit to issue fork.
- Merge request !77Issue #3384389: Mismatched entity and/or field definitions: The User ID field needs to be updated. β (Merged) created by AndyF
- Status changed to Needs review
over 1 year ago 11:14am 13 September 2023 - π¬π§United Kingdom AndyF
I think this must be a hangover from:
https://git.drupalcode.org/project/recurring_events/-/commit/6bdc2517395...
I think that's right: in that commit the new trait doesn't set the field as revisionable although the original was, this seems to be the cause of the mismatch.
- πΊπΈUnited States owenbush Denver, CO
Thanks, Andy. It looks to me like in some other circumstances some of these other fields can end up mismatching, so I went ahead and added a hook update to resolve those too. Good find on the revisionable though.
For example I had this locally:
So the hook update should update uid for those who may have already tried to resolve this, and then also those other mismatches.
- First commit to issue fork.
-
owenbush β
committed f54b8b43 on 2.0.x authored by
AndyF β
Issue #3384389: Mismatched entity and/or field definitions: The User ID...
-
owenbush β
committed f54b8b43 on 2.0.x authored by
AndyF β
- Status changed to Fixed
over 1 year ago 7:17pm 15 December 2023 Automatically closed - issue fixed for 2 weeks with no activity.
- Status changed to Fixed
about 1 year ago 2:53pm 13 February 2024 - π©π°Denmark kasperg
In case anyone stumbles upon this I encountered an error when running the database update when going from 2.0.0-rc16 to 2.0.0.
> [error] Exception thrown while performing a schema update. SQLSTATE[01000]: Warning: 1265 Data truncated for column 'uid' at row 1: ALTER TABLE "eventseries_field_revision" CHANGE "uid" "uid" INT unsigned NOT NULL COMMENT 'The ID of the target entity.'; Array > ( > ) > > [error] Update failed: recurring_events_update_91002
It is not important to me at this point but it may be relevant for others upgrading.
- πͺπΈSpain plopesc Valladolid
Created π Mismatched entity and/or field definitions: The User ID field needs to be updated. v2 Needs review to deal with the error mentioned in the last comment.