Try to fix #12097
This commit is contained in:
parent
7ce01c5ceb
commit
c6a796d270
@ -199,6 +199,12 @@ class DoliDBPgsql extends DoliDB
|
||||
$line=$newline;
|
||||
}
|
||||
|
||||
if (preg_match('/[\s\t\(]*(\w*)[\s\t]+bigint.*auto_increment/i', $line, $reg)) {
|
||||
$newline=preg_replace('/([\s\t\(]*)([a-zA-Z_0-9]*)[\s\t]+int.*auto_increment[^,]*/i', '\\1 \\2 BIGSERIAL PRIMARY KEY', $line);
|
||||
//$line = "-- ".$line." replaced by --\n".$newline;
|
||||
$line=$newline;
|
||||
}
|
||||
|
||||
// tinyint type conversion
|
||||
$line=preg_replace('/tinyint\(?[0-9]*\)?/', 'smallint', $line);
|
||||
$line=preg_replace('/tinyint/i', 'smallint', $line);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user