Fix use of cached schema information in SchemaHandler
authorPatrick Figel <pfigel@greenpeace.org>
Mon, 17 Jun 2019 21:44:58 +0000 (23:44 +0200)
committerPatrick Figel <pfigel@greenpeace.org>
Mon, 17 Jun 2019 21:44:58 +0000 (23:44 +0200)
commitdfcc817d04f874dca181c7176a13cfec3706a894
treecee1b69ad5cc15c52b3ef1fc2e6d6bdad63d1ae3
parent3c8861b04218acafe15ddcf7de34e51203650cd3
Fix use of cached schema information in SchemaHandler

This fixes an issue where CRM_Core_BAO_SchemaHandler uses outdated
schema/column information from cache when rebuilding triggers. In
certain scenarios, for example when multiple custom fields are deleted
during a single script execution, this could cause generated SQL to
reference deleted columns, throwing an error.
CRM/Core/BAO/SchemaHandler.php
tests/phpunit/CRM/Core/BAO/SchemaHandlerTest.php