2
0
forked from Wavyzz/dolibarr

Need to complete

This commit is contained in:
Laurent Destailleur
2011-03-09 02:14:30 +00:00
parent 2594e598ea
commit 1eef89805a

View File

@@ -247,6 +247,7 @@ class DoliDb
$newreg3=preg_replace('/ DEFAULT 0/i','',$newreg3);
$newreg3=preg_replace('/ DEFAULT \'[0-9a-zA-Z_@]*\'/i','',$newreg3);
$line.= "ALTER TABLE ".$reg[1]." ALTER COLUMN ".$reg[2]." TYPE ".$newreg3;
// TODO Add alter to set default value or null/not null if there is this in $reg[3]
}
# alter table add primary key (field1, field2 ...) -> We remove the primary key name not accepted by PostGreSQL