I’ve set the prefix within the database.php config to ‘mchv2’ and all my tables got the prefix.
However, when I try to reach the backend settings, I get the following error message:
SQLSTATE[42S22]: Column not found: 1054 Unknown column 'mchv2_mchv2_system_files.id' in 'IN/ALL/ANY subquery' (SQL: select * from `mchv2_system_files` where (`mchv2_mchv2_system_files`.`id` in (select `slave_id` from `mchv2_deferred_bindings` where `master_field` = logo and `master_type` = Backend\Models\BrandSetting and `session_key` = vTaUiV1BcOeWdlbyrl49Ifd0H1mMIMUhThrMFJyH and `is_bind` = 1)) and `mchv2_mchv2_system_files`.`id` not in (select `slave_id` from `mchv2_deferred_bindings` where `master_field` = logo and `master_type` = Backend\Models\BrandSetting and `session_key` = vTaUiV1BcOeWdlbyrl49Ifd0H1mMIMUhThrMFJyH and `is_bind` = 0 and id > ifnull((select max(id) from mchv2_deferred_bindings where slave_id = mchv2_system_files.id and master_field = logo and master_type = Backend\Models\BrandSetting and session_key = vTaUiV1BcOeWdlbyrl49Ifd0H1mMIMUhThrMFJyH and is_bind = 1 ), 0)) order by `sort_order` asc)
mchv2_mchv2_system_files.id => yes this column is indeed unknown. The question is why the prefix is noted twice in here.
I guess this is a bug somewhere in the backend settings.