I have the same problem when executing the `drush updb` command. The problem occurs after upgrading drupal/authorization to version 1.4.0
...@...:/application$ drush updb -y
------------- ----------- --------------- ------------------------------------
Module Update ID Type Description
------------- ----------- --------------- ------------------------------------
authorizati 8004 hook_update_n 8004 - Migrate roles from field
on_drupal_r 'authorization_drupal_roles_roles'
oles to user data.
------------- ----------- --------------- ------------------------------------
// Do you wish to run the specified pending updates?: yes.
[2024-09-16T13:46:39.304957+02:00] system.NOTICE: Module node has an entry in the system.schema key/value storage, but is not installed. <a href="https://www.drupal.org/node/3137656">More information about this error</a>. [] {"referer":"","ip":"127.0.0.1","request_uri":"http://default/","uid":0,"user":""}
> [notice] Update started: authorization_drupal_roles_update_8004
> [2024-09-16T13:46:50.536441+02:00] authorization_drupal_roles.NOTICE: No profiles have revoke_provider_provisioned enabled. No roles to move to user data. [] {"referer":"","ip":"127.0.0.1","request_uri":"http://default/","uid":0,"user":""}
> [warning] Undefined array key 1 Schema.php:587
> [error] Exception thrown while performing a schema update. SQLSTATE[42P07]: Duplicate table: 7 ERROR: relation "field_deleted_data_21874036cb____pkey" already exists: ALTER INDEX "public"."field_deleted_data_21874036cb____pkey" RENAME TO field_deleted_data_21874036cb____pkey; Array
> (
> )
>
> [error] Update failed: authorization_drupal_roles_update_8004
I have the same problem when executing the `drush updb` command. The problem occurs after upgrading drupal/authorization to version 1.4.0
...@...:/application$ drush updb -y
------------- ----------- --------------- ------------------------------------
Module Update ID Type Description
------------- ----------- --------------- ------------------------------------
authorizati 8004 hook_update_n 8004 - Migrate roles from field
on_drupal_r 'authorization_drupal_roles_roles'
oles to user data.
------------- ----------- --------------- ------------------------------------
// Do you wish to run the specified pending updates?: yes.
[2024-09-16T13:46:39.304957+02:00] system.NOTICE: Module node has an entry in the system.schema key/value storage, but is not installed. <a href="https://www.drupal.org/node/3137656">More information about this error</a>. [] {"referer":"","ip":"127.0.0.1","request_uri":"http://default/","uid":0,"user":""}
> [notice] Update started: authorization_drupal_roles_update_8004
> [2024-09-16T13:46:50.536441+02:00] authorization_drupal_roles.NOTICE: No profiles have revoke_provider_provisioned enabled. No roles to move to user data. [] {"referer":"","ip":"127.0.0.1","request_uri":"http://default/","uid":0,"user":""}
> [warning] Undefined array key 1 Schema.php:587
> [error] Exception thrown while performing a schema update. SQLSTATE[42P07]: Duplicate table: 7 ERROR: relation "field_deleted_data_21874036cb____pkey" already exists: ALTER INDEX "public"."field_deleted_data_21874036cb____pkey" RENAME TO field_deleted_data_21874036cb____pkey; Array
> (
> )
>
> [error] Update failed: authorization_drupal_roles_update_8004