drush updb - Address Line 3 field already exists

Created on 13 December 2024, 6 days ago

Problem/Motivation

I use the Address module (version 2.0.2) on a Drupal 10 setup. While updating the database during the process of upgrading another module to a new version, I encountered the following error:

> [error] Cannot add field 'user__field_contact_address.field_contact_address_address_line3': field already exists.
> [error] Update failed: address_update_9201
.
.

[error] Update aborted by: address_update_9201
[error] Finished performing updates.

Steps to reproduce

Proposed resolution

To prevent this error from occurring, it would be beneficial to implement a verification check before adding a field to confirm whether the field already exists in address_update_9201 function (address.install)

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Active

Version

2.0

Component

Code

Created by

🇮🇳India nileema19

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

Comments & Activities

Production build 0.71.5 2024