dev/core#1093: Add Custom Fields to Logging Tables
authorCamilo Rodríguez <camilo@compucorp.co.uk>
Thu, 24 Oct 2019 18:34:54 +0000 (13:34 -0500)
committerCamilo Rodriguez <camilo@compucorp.co.uk>
Fri, 25 Oct 2019 19:39:43 +0000 (19:39 +0000)
commit47e86ed376addc381a8f90b9cdaa41df42f614e0
treeaffed5307262893278f07bb3d84fb68d158a0e2e
parent5fb7a5ef138c25f95a175c08fbba564689c473c2
dev/core#1093: Add Custom Fields to Logging Tables

BulkSave method was adding fields to custom group table, but not to custom
group logging table. If these tables were updated on installation, before all
the schema is synced bewtween main and logging tables, fatal errors would be
thrown, as triggers tried to insert info into log tables missing required
fields.

Fixed by building log table after all fields are added to main table, and
before rebuilding triggers.
CRM/Core/BAO/CustomField.php