Sould data be removed from authmap table when module unistalled?

Created on 4 October 2024, 4 months ago

Problem/Motivation

If the module is unistalled, that should mean the data inside the table "authmap' with the provider 'CAS' should be removed, isn't it?
otherwise there are many entries in the database with a provider that is not installed anymore.

Steps to reproduce

1. Have entries with the cas provider in the database or in 'admin/people/authmap/cas'
2. uninstall the module
3. check the database, the entries are still there (db or 'admin/people/authmap/cas')

Proposed resolution

1. Add a hook_uninstall to remove any data with the provider
2. Include a sql query that can be executed with drush for those with the module already uninstalled and want to clean the DB

Remaining tasks

Code and query creation

thnks in advance

🐛 Bug report
Status

Active

Version

2.0

Component

CAS

Created by

🇧🇪Belgium gorkagr

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

Comments & Activities

Production build 0.71.5 2024