diff --git a/htdocs/core/db/pgsql.class.php b/htdocs/core/db/pgsql.class.php index 610f9925546..fb18ed0f161 100644 --- a/htdocs/core/db/pgsql.class.php +++ b/htdocs/core/db/pgsql.class.php @@ -1225,7 +1225,7 @@ class DoliDBPgsql extends DoliDB { // phpcs:enable $sql = "ALTER TABLE ".$table; - $sql .= " ALTER COLUMN '".$this->escape($field_name)."' TYPE ".$field_desc['type']; + $sql .= " ALTER COLUMN ".$this->escape($field_name)." TYPE ".$field_desc['type']; if (preg_match("/^[^\s]/i", $field_desc['value'])) { if (!in_array($field_desc['type'], array('smallint', 'int', 'date', 'datetime')) && $field_desc['value']) { $sql .= "(".$field_desc['value'].")";