setup - Fix uninstall on MySQL 8.0
authorTim Otten <totten@civicrm.org>
Tue, 16 May 2023 23:56:18 +0000 (16:56 -0700)
committerTim Otten <totten@civicrm.org>
Tue, 16 May 2023 23:56:18 +0000 (16:56 -0700)
commitdd4c7fd6c9f4d5479355c2dbffcf0318bb171a6b
treeb8749cf7f9a763d3ba832b00efdfcbdbe3fd2e61
parent23973761d5671d6f37765e7af9f3b9f238b6e302
setup - Fix uninstall on MySQL 8.0

Overview
--------

Fix a bug with uninstalling or reinstalling via cv (`cv core:uninstall` or `cv core:install -f`) on MySQL 8.0.

Before
------

On MySQL 8.0, it fails - because all table-names appear as null.

It's looking for a result column named `table_name` but actually receives `TABLE_NAME`.

After
-----

Doesn't matter if the column is called `table_name` or `TABLE_NAME`.
setup/src/Setup/DbUtil.php