Skip to content

Commit

Permalink
extending the @wannesderoy patch from civicrm#18920
Browse files Browse the repository at this point in the history
  • Loading branch information
bjendres committed Apr 3, 2021
1 parent 78ed520 commit 4ade2ea
Show file tree
Hide file tree
Showing 2 changed files with 93 additions and 91 deletions.
4 changes: 3 additions & 1 deletion CRM/Export/BAO/ExportProcessor.php
Original file line number Diff line number Diff line change
Expand Up @@ -1458,7 +1458,9 @@ public function getSqlColumnDefinition($fieldName, $columnName) {
if (in_array(CRM_Utils_Array::value('data_type', $fieldSpec), ['Country', 'StateProvince', 'ContactReference'])) {
return "`$fieldName` varchar(255)";
}
return "`$fieldName` varchar(16)";
// some of those will be exported as a (localisable) string
// @see https://lab.civicrm.org/dev/core/-/issues/2164
return "`$fieldName` varchar(64)";

case CRM_Utils_Type::T_STRING:
if (isset($fieldSpec['maxlength'])) {
Expand Down
Loading

0 comments on commit 4ade2ea

Please sign in to comment.