DB update results in SQL schema error

Created on 4 April 2023, over 1 year ago
Updated 5 June 2024, 4 months ago

Hello, Thank you for your work on this project. Recently, I ran into an issue when updating from 9.0.0 to 9.1.0. When running the required database updates, I get the error "The SQL storage cannot change the schema for an existing field." See below for the full output:

The following updates are pending:
yearonly module :
9001 - Fix tokens or token types missing name property.
Do you wish to run all pending updates? (y/n): y
Failed: The SQL storage cannot change the schema for an existing field           [error]
(field_personal_cont_ed_year1 in node entity) with data.

I'm running Drupal 9.5.4 / PHP 7.4.16 / Database 10.3.31-MariaDB

I see on my status page that my Year Only fields need to be updated, which is what I'm assuming the 9.1.0 version is fixing. Unless it is something else? Here's the list in my Status Report:

ENTITY/FIELD DEFINITIONS
Mismatched entity and/or field definitions
The following changes were detected in the entity type and field definitions.
Content
The node.field_personal_cont_ed_year1 field needs to be updated.
The node.field_personal_cont_ed_year2 field needs to be updated.
The node.field_personal_cont_ed_year3 field needs to be updated.
The node.field_personal_cont_ed_year4 field needs to be updated.
The node.field_personal_edu_year_beg1 field needs to be updated.
The node.field_personal_edu_year_beg2 field needs to be updated.
The node.field_personal_edu_year_beg3 field needs to be updated.
The node.field_personal_edu_year_beg4 field needs to be updated.
The node.field_personal_edu_year_end1 field needs to be updated.
The node.field_personal_edu_year_end2 field needs to be updated.
The node.field_personal_edu_year_end3 field needs to be updated.
The node.field_personal_edu_year_end4 field needs to be updated.

I'm unable to update the module for now, which is not an issue at the moment, but will become one when version 9.0.0 is no longer supported.

πŸ› Bug report
Status

Postponed: needs info

Version

9.1

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States saki_rayogram

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

Comments & Activities

Production build 0.71.5 2024