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>
Mon, 28 Oct 2019 12:47:26 +0000 (12:47 +0000)
commit0ce51a3d53f68a64c1d7ae1aa6b1fc599603687f
treedf28330b6d9372bd6dad73e6c70ffadd74442e01
parentd84ee29ac64a10f0c987240bb6e805d91780bc80
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