phpgroupware-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Phpgroupware-cvs] phpgwapi/inc class.schema_proc_pgsql.inc.php


From: Sigurd Nes
Subject: [Phpgroupware-cvs] phpgwapi/inc class.schema_proc_pgsql.inc.php
Date: Thu, 20 Apr 2006 06:45:13 +0000

CVSROOT:        /sources/phpgwapi
Module name:    phpgwapi
Branch:         
Changes by:     Sigurd Nes <address@hidden>     06/04/20 06:45:13

Modified files:
        inc            : class.schema_proc_pgsql.inc.php 

Log message:
        

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/phpgwapi/phpgwapi/inc/class.schema_proc_pgsql.inc.php.diff?tr1=1.15&tr2=1.16&r1=text&r2=text

Patches:
Index: phpgwapi/inc/class.schema_proc_pgsql.inc.php
diff -u phpgwapi/inc/class.schema_proc_pgsql.inc.php:1.15 
phpgwapi/inc/class.schema_proc_pgsql.inc.php:1.16
--- phpgwapi/inc/class.schema_proc_pgsql.inc.php:1.15   Wed Apr 19 19:11:21 2006
+++ phpgwapi/inc/class.schema_proc_pgsql.inc.php        Thu Apr 20 06:45:13 2006
@@ -12,7 +12,7 @@
        * @license http://www.fsf.org/licenses/gpl.html GNU General Public 
License
        * @package phpgwapi
        * @subpackage database
-       * @version $Id: class.schema_proc_pgsql.inc.php,v 1.15 2006/04/19 
19:11:21 sigurdne Exp $
+       * @version $Id: class.schema_proc_pgsql.inc.php,v 1.16 2006/04/20 
06:45:13 sigurdne Exp $
        * @link http://www.greatbridge.org/project/phppgadmin
        * @internal SQL for table properties taken from phpPgAdmin Version 2.2.1
        */
@@ -453,15 +453,14 @@
                                if ($DEBUG) { echo '<br>RenameTable(): Altering 
column default for: ' . $sField; }
                        }
 
-
                        $oProc->m_odb->query("ALTER TABLE $sOldTableName RENAME 
TO $sNewTableName");                    
                        if ($sSequenceName)
                        {
-                               $oProc->m_odb->query("ALTER TABLE 
$sNewTableName ALTER $sField SET DEFAULT nextval('seq_" . $sNewTableName . 
"')",__LINE__,__FILE__);
+                               $Ok = !!($oProc->m_odb->query("ALTER TABLE 
$sNewTableName ALTER $sField SET DEFAULT nextval('seq_" . $sNewTableName . 
"')"));
                                
$this->DropSequenceForTable($oProc,$sOldTableName);
                        }
                        
-                       return true;
+                       return $Ok;
 
                /* todo - fix index-renaming.
                        $indexnames = $oProc->m_odb->index_names();




reply via email to

[Prev in Thread] Current Thread [Next in Thread]