Update 8002 fails if index already exists.

Created on 14 April 2023, about 1 year ago

This is a follow up to
https://www.drupal.org/project/restrict_ip/issues/3080420 πŸ› SQLSTATE[HY000]: General error: 1 near "-": syntax error Fixed

In my case I had installed the restrict_ip module with the patch provided at https://www.drupal.org/project/restrict_ip/issues/3080420#comment-14862181 πŸ› SQLSTATE[HY000]: General error: 1 near "-": syntax error Fixed

Which had the type_path index with the underscore in the install hook, but the update hook hadn't been included yet.

When upgrading to the latest version of the module the update hook throws an error as the index already exists.

Patch provided.

πŸ› Bug report
Status

Active

Version

4.0

Component

Code

Created by

πŸ‡¦πŸ‡ΊAustralia au_dave Adelaide

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

Comments & Activities

Production build 0.69.0 2024