From 4a77ea3a6e895b052e915b86820fc35368462003 Mon Sep 17 00:00:00 2001 From: Seamus Lee Date: Mon, 6 Jun 2016 10:12:36 +1000 Subject: [PATCH] Fix validation --- CRM/Core/BAO/SchemaHandler.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CRM/Core/BAO/SchemaHandler.php b/CRM/Core/BAO/SchemaHandler.php index 46e63179b2..3ec0fad1ee 100644 --- a/CRM/Core/BAO/SchemaHandler.php +++ b/CRM/Core/BAO/SchemaHandler.php @@ -590,7 +590,7 @@ MODIFY {$columnName} varchar( $length ) public static function checkIfFieldExists($tableName, $columnName) { $result = CRM_Core_DAO::executeQuery( "SHOW COLUMNS FROM $tableName LIKE ' %1 '", - array(1 => array($columnName, 'mysqlColumnNameOrAlias')) + array(1 => array($columnName, 'String')) ); if ($result->fetch()) { return TRUE; -- 2.25.1