phpgroupware-cvs
[Top][All Lists]
Advanced

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

[Phpgroupware-cvs] CVS: phpgwapi/setup setup.inc.php,1.37,1.37.2.1 table


From: Joseph Engo <address@hidden>
Subject: [Phpgroupware-cvs] CVS: phpgwapi/setup setup.inc.php,1.37,1.37.2.1 tables_current.inc.php,1.32,1.32.2.1 tables_update.inc.php,1.53,1.53.2.1
Date: Thu, 24 Jan 2002 14:26:35 -0500

Update of /cvsroot/phpgroupware/phpgwapi/setup
In directory subversions:/tmp/cvs-serv11279/setup

Modified Files:
      Tag: Version-0_9_14-branch
        setup.inc.php tables_current.inc.php tables_update.inc.php 
Log Message:
- Added old value to history class
- The history class will now detect weather or not changes have been made to an 
item rather then the developer having a million ifs in there code


Index: setup.inc.php
===================================================================
RCS file: /cvsroot/phpgroupware/phpgwapi/setup/setup.inc.php,v
retrieving revision 1.37
retrieving revision 1.37.2.1
diff -C2 -r1.37 -r1.37.2.1
*** setup.inc.php       5 Jan 2002 18:56:33 -0000       1.37
--- setup.inc.php       24 Jan 2002 19:26:33 -0000      1.37.2.1
***************
*** 10,19 ****
        
\**************************************************************************/
  
!       /* $Id$ */
  
        /* Basic information about this app */
        $setup_info['phpgwapi']['name']      = 'phpgwapi';
        $setup_info['phpgwapi']['title']     = 'phpgwapi';
!       $setup_info['phpgwapi']['version']   = '0.9.13.017';
        $setup_info['phpgwapi']['versions']['current_header'] = '1.19';
        $setup_info['phpgwapi']['enable']    = 3;
--- 10,20 ----
        
\**************************************************************************/
  
!       // $Id$
!       // $Source$
  
        /* Basic information about this app */
        $setup_info['phpgwapi']['name']      = 'phpgwapi';
        $setup_info['phpgwapi']['title']     = 'phpgwapi';
!       $setup_info['phpgwapi']['version']   = '0.9.13.018';
        $setup_info['phpgwapi']['versions']['current_header'] = '1.19';
        $setup_info['phpgwapi']['enable']    = 3;

Index: tables_current.inc.php
===================================================================
RCS file: /cvsroot/phpgroupware/phpgwapi/setup/tables_current.inc.php,v
retrieving revision 1.32
retrieving revision 1.32.2.1
diff -C2 -r1.32 -r1.32.2.1
*** tables_current.inc.php      25 Nov 2001 23:32:16 -0000      1.32
--- tables_current.inc.php      24 Jan 2002 19:26:33 -0000      1.32.2.1
***************
*** 1,14 ****
  <?php
!   /**************************************************************************\
!   * phpGroupWare                                                             *
!   * http://www.phpgroupware.org                                              *
!   * --------------------------------------------                             *
!   *  This program is free software; you can redistribute it and/or modify it *
!   *  under the terms of the GNU General Public License as published by the   *
!   *  Free Software Foundation; either version 2 of the License, or (at your  *
!   *  option) any later version.                                              *
!   \**************************************************************************/
  
!   /* $Id$ */
  
        $phpgw_baseline = array(
--- 1,15 ----
  <?php
!       
/**************************************************************************\
!       * phpGroupWare                                                          
   *
!       * http://www.phpgroupware.org                                           
   *
!       * --------------------------------------------                          
   *
!       *  This program is free software; you can redistribute it and/or modify 
it *
!       *  under the terms of the GNU General Public License as published by 
the   *
!       *  Free Software Foundation; either version 2 of the License, or (at 
your  *
!       *  option) any later version.                                           
   *
!       
\**************************************************************************/
  
!       // $Id$
!       // $Source$
  
        $phpgw_baseline = array(
***************
*** 344,348 ****
                                'history_status'    => array('type' => 'char',  
    'precision' => 2,  'nullable' => False),
                                'history_new_value' => array('type' => 'text',  
    'nullable' => False),
!                               'history_timestamp' => array('type' => 
'timestamp', 'nullable' => False, 'default' => 'current_timestamp')
                        ),
                        'pk' => array('history_id'),
--- 345,350 ----
                                'history_status'    => array('type' => 'char',  
    'precision' => 2,  'nullable' => False),
                                'history_new_value' => array('type' => 'text',  
    'nullable' => False),
!                               'history_timestamp' => array('type' => 
'timestamp', 'nullable' => False, 'default' => 'current_timestamp'),
!                               'history_old_value' => array('type' => 'text',  
    'nullable' => False)
                        ),
                        'pk' => array('history_id'),

Index: tables_update.inc.php
===================================================================
RCS file: /cvsroot/phpgroupware/phpgwapi/setup/tables_update.inc.php,v
retrieving revision 1.53
retrieving revision 1.53.2.1
diff -C2 -r1.53 -r1.53.2.1
*** tables_update.inc.php       8 Jan 2002 03:28:04 -0000       1.53
--- tables_update.inc.php       24 Jan 2002 19:26:33 -0000      1.53.2.1
***************
*** 1,14 ****
  <?php
!   /**************************************************************************\
!   * phpGroupWare - Setup                                                     *
!   * http://www.phpgroupware.org                                              *
!   * --------------------------------------------                             *
!   *  This program is free software; you can redistribute it and/or modify it *
!   *  under the terms of the GNU General Public License as published by the   *
!   *  Free Software Foundation; either version 2 of the License, or (at your  *
!   *  option) any later version.                                              *
!   \**************************************************************************/
  
!   /* $Id$ */
  
        /* Include older phpGroupWare update support */
--- 1,15 ----
  <?php
!       
/**************************************************************************\
!       * phpGroupWare - Setup                                                  
   *
!       * http://www.phpgroupware.org                                           
   *
!       * --------------------------------------------                          
   *
!       *  This program is free software; you can redistribute it and/or modify 
it *
!       *  under the terms of the GNU General Public License as published by 
the   *
!       *  Free Software Foundation; either version 2 of the License, or (at 
your  *
!       *  option) any later version.                                           
   *
!       
\**************************************************************************/
  
!       // $Id$
!       // $Source$
  
        /* Include older phpGroupWare update support */
***************
*** 414,416 ****
--- 415,427 ----
                return $GLOBALS['setup_info']['phpgwapi']['currentver'];
        }
+ 
+       $test[] = '0.9.13.017';
+       function phpgwapi_upgrade0_9_13_017()
+       {
+               
$GLOBALS['phpgw_setup']->oProc->AddColumn('phpgw_history_log','history_old_value',array('type'
 => 'text','nullable' => False));
+ 
+               $GLOBALS['setup_info']['phpgwapi']['currentver'] = '0.9.13.018';
+               return $GLOBALS['setup_info']['phpgwapi']['currentver'];
+       }
+ 
  ?>




reply via email to

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