Commit 5b1cbbda authored by mattwire's avatar mattwire
Browse files

When upgrading check and update customfield datatypes ( was instead of on some old installs)

parent 0e1630e5
......@@ -126,7 +126,7 @@ class CRM_Civigiftaid_Upgrader extends CRM_Civigiftaid_Upgrader_Base {
// Typical case, insist on these:
$requiredParams = array_intersect_key($details, array_flip([
'default_value', 'is_active', 'is_searchable', 'weight', 'help_pre',
'help_post', 'is_search_range', 'text_length'
'help_post', 'is_search_range', 'text_length', 'data_type'
] ));
}
unset($details['_requiredParams']);
......@@ -616,6 +616,12 @@ class CRM_Civigiftaid_Upgrader extends CRM_Civigiftaid_Upgrader_Base {
return TRUE;
}
public function upgrade_3114() {
$this->log('Check and update data_type for custom fields');
$this->ensureDataStructures();
return TRUE;
}
/**
* @return array
*/
......
......@@ -9,6 +9,10 @@ Releases use the following numbering system:
* **[BC]**: Items marked with [BC] indicate a breaking change that will require updates to your code if you are using that code in your extension.
## Release 3.4.7 (not yet released 2020-12-04)
* When upgrading check and update customfield datatypes (`eligible_for_gift_aid` was `varchar` instead of `int` on some old installs).
## Release 3.4.6
* Add `GiftAid.Ensuredatastructures` API.
......
......@@ -18,9 +18,9 @@
<author>MJW Consulting, Rich Lott (Artful Robot) Erawat Chamanont, Jamie Novick, Guanhuan Chen, Robin Mitra</author>
<email>mjw@mjwconsult.co.uk, https://artfulrobot.uk, jamie@compucorp.co.uk, guanhuan@compucorp.co.uk</email>
</maintainer>
<releaseDate>2020-11-25</releaseDate>
<version>3.4.6</version>
<develStage>stable</develStage>
<releaseDate>2020-12-04</releaseDate>
<version>3.4.7-dev</version>
<develStage>beta</develStage>
<compatibility>
<ver>5.28</ver>
</compatibility>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment