Merge pull request #23068 from noec764/14_0_FIX_PGSQL_UpdatField
FIX: PGSQL Integer type does not have a free lenght
This commit is contained in:
commit
931fe92148
@ -1182,7 +1182,7 @@ class DoliDBPgsql extends DoliDB
|
||||
// phpcs:enable
|
||||
$sql = "ALTER TABLE ".$table;
|
||||
$sql .= " MODIFY COLUMN ".$field_name." ".$field_desc['type'];
|
||||
if (in_array($field_desc['type'], array('double', 'tinyint', 'int', 'varchar')) && $field_desc['value']) {
|
||||
if (in_array($field_desc['type'], array('double', 'varchar')) && $field_desc['value']) {
|
||||
$sql .= "(".$field_desc['value'].")";
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user