dev/core#1383: Fix Re-Installation of Extensions With Logging Enabled
authorCamilo Rodriguez <camilo@compucorp.co.uk>
Mon, 11 Nov 2019 16:00:30 +0000 (16:00 +0000)
committerCamilo Rodriguez <camilo@compucorp.co.uk>
Thu, 21 Nov 2019 12:36:37 +0000 (12:36 +0000)
commit363c450b7b3c490603565b691f0f8673cdaa5951
treedaf76ff1a7d4efe69d25cb7e09c46c95773a3037
parent448b2c0fd2e355d8784660d2586430b88ae1ae3c
dev/core#1383: Fix Re-Installation of Extensions With Logging Enabled

When uninstalling an extension, logging tables associated to custom groups and
fields will not be deleted. On re-installation, addition of custom fields will
cause DB errors to be thrown, as columns existing on logging tables are tried
to be created again (they already exist on logging tables).

Fixed by checking if the column exists on log table before trying to create
it, treating it as a modification of the schema if it exists.
CRM/Logging/Schema.php