Upgrade : The SQL storage cannot change the schema for an existing field

Created on 5 April 2024, 3 months ago

Problem/Motivation

I do have several fields "smart dates" and I am currently using smart date range version : 4.0.0-beta1. However when I want to upgrade to latest version 4.1.0-rc5 I am getting following errors in Status report after I run update.php:

The node.field_xx_date field needs to be updated.
The node.field_yy_date field needs to be updated.
.
.
.

When I tried to navigate to this fields and wanted to re-save I am getting following errors:

The website encountered an unexpected error. Please try again later.

Drupal\Core\Entity\Exception\FieldStorageDefinitionUpdateForbiddenException: The SQL storage cannot change the schema for an existing field (field_xx_date in node entity) with data. in Drupal\Core\Entity\Sql\SqlContentEntityStorageSchema->updateDedicatedTableSchema() (line 1756 of core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorageSchema.php).

Looks like I need to do rollback :( Any idea ?

πŸ› Bug report
Status

Closed: duplicate

Version

4.1

Component

Code

Created by

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

Comments & Activities

Production build 0.69.0 2024