10:51:09 koha_1 | # Failed test 'No tests run for subtest "list() and delete() tests | authorized user"' 10:51:09 koha_1 | # at t/db_dependent/api/v1/acquisitions_vendors.t line 112. 10:51:09 koha_1 | DBIx::Class::Storage::DBI::_dbh_execute(): DBI Exception: DBD::mysql::st execute failed: Cannot delete or update a parent row: a foreign key constraint fails (`koha_kohadev`.`vendor_edi_accounts`, CONSTRAINT `vfk_vendor_id` FOREIGN KEY (`vendor_id`) REFERENCES `aqbooksellers` (`id`)) [for Statement "DELETE FROM `aqbooksellers`"] at /kohadevbox/koha/Koha/Objects.pm line 208 10:51:09 koha_1 | # Looks like your test exited with 255 just after 1. Master_D9 (#1590) Looks like we are missing a "on delete cascade" on vendor_edi_accounts
The easy fix would be to call: $schema->resultset('VendorEdiAccount')->search->delete; but are we hiding some error? On the other hand, we might want the query to fail, so we can notify deleting is not possible and user intervention is needed (i.e. maybe we really want Koha::Acquisition::Booksellers->search->delete to fail).
This is 2 years old - still valid?
(In reply to Katrin Fischer from comment #2) > This is 2 years old - still valid? Yes.