From 28818fc65bb70ca84f6ceaa9dcc18fdb3832de59 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sun, 26 Mar 2023 21:19:38 +0200 Subject: [PATCH] Fix pgsql update of extrafields type --- htdocs/core/db/pgsql.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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'].")";