From 15bac3ed47523ee8cc07cabc3f1f16d557a7dec1 Mon Sep 17 00:00:00 2001
From: Kevin Cristiano <kcristiano@kcristiano.com>
Date: Thu, 4 Nov 2021 08:02:58 -0400
Subject: [PATCH] fully revert
 https://github.com/civicrm/civicrm-core/pull/20626

Signed-off-by: Kevin Cristiano <kcristiano@kcristiano.com>
---
 civicrm/CRM/Export/BAO/ExportProcessor.php | 10 ----------
 1 file changed, 10 deletions(-)

diff --git a/civicrm/CRM/Export/BAO/ExportProcessor.php b/civicrm/CRM/Export/BAO/ExportProcessor.php
index 18a5663ff8..4e85f9758c 100644
--- a/civicrm/CRM/Export/BAO/ExportProcessor.php
+++ b/civicrm/CRM/Export/BAO/ExportProcessor.php
@@ -1464,16 +1464,6 @@ class CRM_Export_BAO_ExportProcessor {
 
         case CRM_Utils_Type::T_STRING:
           if (isset($fieldSpec['maxlength'])) {
-            // A localized string for the preferred_mail_format does not fit
-            // into the varchar(8) field.
-            // @see https://lab.civicrm.org/dev/core/-/issues/2645
-            switch ($fieldName) {
-              case 'preferred_mail_format':
-                return "`$fieldName` text(16)";
-
-              default:
-                return "`$fieldName` varchar({$fieldSpec['maxlength']})";
-            }
           }
           $dataType = $fieldSpec['data_type'] ?? '';
           // set the sql columns for custom data
-- 
GitLab