phpgroupware-cvs
[Top][All Lists]
Advanced

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

[Phpgroupware-cvs] CVS: todo/setup tables_update.inc.php,1.13.2.1,1.13.2


From: Mark A Peters <address@hidden>
Subject: [Phpgroupware-cvs] CVS: todo/setup tables_update.inc.php,1.13.2.1,1.13.2.2
Date: Sun, 21 Apr 2002 15:04:40 -0400

Update of /cvsroot/phpgroupware/todo/setup
In directory subversions:/tmp/cvs-serv24289/todo/setup

Modified Files:
      Tag: Version-0_9_14-branch
        tables_update.inc.php 
Log Message:
Part of GNU Bug #100671.

Index: tables_update.inc.php
===================================================================
RCS file: /cvsroot/phpgroupware/todo/setup/tables_update.inc.php,v
retrieving revision 1.13.2.1
retrieving revision 1.13.2.2
diff -C2 -r1.13.2.1 -r1.13.2.2
*** tables_update.inc.php       19 Jan 2002 18:36:14 -0000      1.13.2.1
--- tables_update.inc.php       21 Apr 2002 19:04:37 -0000      1.13.2.2
***************
*** 14,27 ****
        function todo_v0_9_2to0_9_3update_owner($table, $field)
        {
!               global $phpgw_setup;
! 
!               $phpgw_setup->oProc->query("select distinct($field) from 
$table");
!               if ($phpgw_setup->oProc->num_rows())
                {
!                       while ($phpgw_setup->oProc->next_record())
                        {
!                               $owner[count($owner)] = 
$phpgw_setup->oProc->f($field);
[...1345 lines suppressed...]
        {
!               global $setup_info, $phpgw_setup;
  
!               
$phpgw_setup->oProc->AddColumn('phpgw_todo','todo_title',array('type' => 
'varchar','precision' => 255,'nullable' => False));
!               
$phpgw_setup->oProc->AlterColumn('phpgw_todo','todo_owner',array('type' => 
'int','precision' => 4,'default' => 0,'nullable' => False));
! 
!               $setup_info['todo']['currentver'] = '0.9.13.004';
!               return $setup_info['todo']['currentver'];
        }
  ?>
--- 618,626 ----
        function todo_upgrade0_9_13_003()
        {
!               
$GLOBALS['phpgw_setup']->oProc->AddColumn('phpgw_todo','todo_title',array('type'
 => 'varchar','precision' => 255,'nullable' => False));
!               
$GLOBALS['phpgw_setup']->oProc->AlterColumn('phpgw_todo','todo_owner',array('type'
 => 'int','precision' => 4,'default' => 0,'nullable' => False));
  
!               $GLOBALS['setup_info']['todo']['currentver'] = '0.9.13.004';
!               return $GLOBALS['setup_info']['todo']['currentver'];
        }
  ?>




reply via email to

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