Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
Updated: Comment #1
Problem/Motivation
An enabled module that has a schema_version of -1, which is valid for enabled modules, cannot be uninstalled (and thus removed) from a Drupal 8 site. Major regression and headache for anyone trying to remove a module.
There may be some case where an enabled module has schema_version -1 but does not pass drupal_get_installed_schema_version() check, but cannot reproduce.
Proposed resolution
Consider lifting condition on schema_version and checking module status instead.
Remaining tasks
None.
User interface changes
All enabled modules will be displayed in Uninstall tab.
API changes
None?
Comments
Comment #1
mradcliffeWorking on this at the moment.
Comment #2
mradcliffeI can't reproduce this on a fresh install with a dummy module that I have.
drupal_get_installed_schema_version() is returning 0 for the module and not -1.
False positive. There may be some legitimate case where a module does have schema_version -1 and it doesn't pass, but I can't find it on a Friday evening.
Comment #3
klonosComment #11
pameeela CreditAttribution: pameeela commentedAs part of the Bug smash initiative, we are triaging issues that are marked 'Postponed (maintainer needs more info)'. Given that mradcliffe noted he could not reproduce on a fresh install, I am marking this 'Closed (cannot reproduce)'.
If anyone believes this issue should not be closed, please provide specific steps to reproduce when reopening it.