Fixed tinyint for PostgreSQL in a more generic way
This commit is contained in:
parent
3c08ca5b71
commit
875f9d55c7
@ -209,7 +209,7 @@ class DoliDBPgsql extends DoliDB
|
|||||||
}
|
}
|
||||||
|
|
||||||
// tinyint type conversion
|
// tinyint type conversion
|
||||||
$line=str_replace('tinyint','smallint',$line);
|
$line=preg_replace('/tinyint\(?[0-9]*\)?/','smallint',$line);
|
||||||
|
|
||||||
// nuke unsigned
|
// nuke unsigned
|
||||||
$line=preg_replace('/(int\w+|smallint)\s+unsigned/i','\\1',$line);
|
$line=preg_replace('/(int\w+|smallint)\s+unsigned/i','\\1',$line);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user