Updating to 2.x with existing key

Created on 17 October 2023, 8 months ago
Updated 18 October 2023, 8 months ago

Problem/Motivation

I was using the 1.x-version of the module with patch from https://www.drupal.org/project/openid_connect_windows_aad/issues/3106306 . Now when I updated to 2.x-version, I receive error "'key' entity with ID 'openid_connect_windows_aad_key' already exists." when trying to do the database updates.

Steps to reproduce

Install first the 1.x-version of the module, patch it and create a key. Update to 2.x-version and try to run the database updates.

Proposed resolution

Add check to the update hook to see if the key already exists.

🐛 Bug report
Status

Fixed

Version

2.0

Component

Code

Created by

🇫🇮Finland thatguy

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

Comments & Activities

Production build 0.69.0 2024