Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Problem/Motivation
$install_state['database_ready']
added some logic around $install_state['database_ready']
but it's never set to TRUE to it's just confusing.
Proposed resolution
Remove logic dependent on $install_state['database_ready']
being true because it never is.
Remaining tasks
User interface changes
None
API changes
None
Data model changes
None
Release notes snippet
N/a
Comment | File | Size | Author |
---|---|---|---|
#2 | 3135310-2.patch | 1.72 KB | alexpott |
Comments
Comment #2
alexpottComment #3
longwaveSo this was added back in #2352081: Prevent installation over an already installed database but it has never worked -
database_ready
was always FALSE then and nothing has changed since. Tests pass so this is obviously dead code and can be removed.Comment #4
xjmConfirmed it never gets set anywhere:
I wonder what this means for the
install_verify_database_ready()
task that #3120731: Incorrect "Drupal already installed" if any database settings are wrong or unsatisfactory also added a task to... maybe that's related to why that functionality went wrong in the first place?Comment #8
xjmCommitted to 9.1.x, and cherry-picked to 9.0.x and 8.9.x. I didn't cherry-pick it to 8.8.x because the other installer change wasn't.
@longwave was incorrectly not credited in the commit message (sorry) due to crossposting with myself, but I've fixed this in the issue credits themselves.
Thanks!