diff --git a/application/Espo/Core/Utils/Database/DBAL/Platforms/MySqlPlatform.php b/application/Espo/Core/Utils/Database/DBAL/Platforms/MySqlPlatform.php index 6aa7d812f9..19dc3609ba 100644 --- a/application/Espo/Core/Utils/Database/DBAL/Platforms/MySqlPlatform.php +++ b/application/Espo/Core/Utils/Database/DBAL/Platforms/MySqlPlatform.php @@ -452,5 +452,17 @@ class MySqlPlatform extends \Doctrine\DBAL\Platforms\MySqlPlatform return 'MEDIUMTEXT'; } + + public function getColumnDeclarationListSQL(array $fields) + { + $queryFields = array(); + + foreach ($fields as $fieldName => $field) { + $quotedFieldName = $this->espoQuote($fieldName); + $queryFields[] = $this->getColumnDeclarationSQL($quotedFieldName, $field); + } + + return implode(', ', $queryFields); + } //end: ESPO } \ No newline at end of file