diff --git a/htdocs/core/db/pgsql.class.php b/htdocs/core/db/pgsql.class.php index cffcee3acd9..8159304f376 100644 --- a/htdocs/core/db/pgsql.class.php +++ b/htdocs/core/db/pgsql.class.php @@ -209,7 +209,7 @@ class DoliDBPgsql extends DoliDB } // tinyint type conversion - $line=str_replace('tinyint','smallint',$line); + $line=preg_replace('/tinyint\(?[0-9]*\)?/','smallint',$line); // nuke unsigned $line=preg_replace('/(int\w+|smallint)\s+unsigned/i','\\1',$line); diff --git a/htdocs/install/mysql/tables/llx_socpeople.sql b/htdocs/install/mysql/tables/llx_socpeople.sql index 04be54ba06c..c46a7ef3aca 100644 --- a/htdocs/install/mysql/tables/llx_socpeople.sql +++ b/htdocs/install/mysql/tables/llx_socpeople.sql @@ -51,5 +51,5 @@ create table llx_socpeople default_lang varchar(6), canvas varchar(32), -- type of canvas if used (null by default) import_key varchar(14), - statut tinyint(4) + statut tinyint )ENGINE=innodb;