Change the schema for an existing field with data

Created on 8 August 2020, over 4 years ago
Updated 28 April 2024, 7 months ago

Hi,

After successfully update the module from 8.x-1.3 to 2.0.0-alpha1, status report is displaying the below error:

ENTITY/FIELD DEFINITIONS
Mismatched entity and/or field definitions
The following changes were detected in the entity type and field definitions.
Phone Number Verification
The Phone verification ID field needs to be updated.
SMS Delivery Report
The ID field needs to be updated.
The Revision ID field needs to be updated.
SMS Message Result
The ID field needs to be updated.
SMS Message
The SMS message ID field needs to be updated.

So I have downloaded Devel Entity Updates Module just to quickly and easily be able to run the drush entup command.

However, after running that command, I am facing now another error:

In SqlContentEntityStorageSchema.php line 1887:

  The SQL storage cannot change the schema for an existing field (id in sms_phone_number_verification entity) with data.

is there any way to update fields definitions while keeping existing data untouched ?

Thank you,

🐛 Bug report
Status

Closed: cannot reproduce

Version

2.1

Component

Core Framework

Created by

🇱🇧Lebanon C.E.A

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024