From 1eef89805af19c20fe415f69b99d1ed6c1c4181a Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Wed, 9 Mar 2011 02:14:30 +0000 Subject: [PATCH] Need to complete --- htdocs/lib/databases/pgsql.lib.php | 1 + 1 file changed, 1 insertion(+) diff --git a/htdocs/lib/databases/pgsql.lib.php b/htdocs/lib/databases/pgsql.lib.php index 3655c2bc7fa..3fc62428916 100644 --- a/htdocs/lib/databases/pgsql.lib.php +++ b/htdocs/lib/databases/pgsql.lib.php @@ -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