phpgroupware-cvs
[Top][All Lists]
Advanced

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

[Phpgroupware-cvs] phpgwapi/setup setup.inc.php tables_update.inc....


From: Sigurd Nes
Subject: [Phpgroupware-cvs] phpgwapi/setup setup.inc.php tables_update.inc....
Date: Mon, 23 Oct 2006 13:13:07 +0000

CVSROOT:        /sources/phpgwapi
Module name:    phpgwapi
Changes by:     Sigurd Nes <sigurdne>   06/10/23 13:13:07

Modified files:
        setup          : setup.inc.php tables_update.inc.php 
                         tables_current.inc.php 

Log message:
        default value of acl_type in table phpgw_acl is '0'

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/phpgwapi/setup/setup.inc.php?cvsroot=phpgwapi&r1=1.79&r2=1.80
http://cvs.savannah.gnu.org/viewcvs/phpgwapi/setup/tables_update.inc.php?cvsroot=phpgwapi&r1=1.98&r2=1.99
http://cvs.savannah.gnu.org/viewcvs/phpgwapi/setup/tables_current.inc.php?cvsroot=phpgwapi&r1=1.69&r2=1.70

Patches:
Index: setup.inc.php
===================================================================
RCS file: /sources/phpgwapi/phpgwapi/setup/setup.inc.php,v
retrieving revision 1.79
retrieving revision 1.80
diff -u -b -r1.79 -r1.80
--- setup.inc.php       9 Oct 2006 10:44:53 -0000       1.79
+++ setup.inc.php       23 Oct 2006 13:13:07 -0000      1.80
@@ -5,14 +5,14 @@
        * @license http://www.gnu.org/licenses/gpl.html GNU General Public 
License
        * @package phpgwapi
        * @subpackage setup
-       * @version $Id: setup.inc.php,v 1.79 2006/10/09 10:44:53 sigurdne Exp $
+       * @version $Id: setup.inc.php,v 1.80 2006/10/23 13:13:07 sigurdne Exp $
        * @internal $Source: /sources/phpgwapi/phpgwapi/setup/setup.inc.php,v $
        */
 
        // Basic information about this app
        $setup_info['phpgwapi']['name']      = 'phpgwapi';
        $setup_info['phpgwapi']['title']     = 'phpgwapi';
-       $setup_info['phpgwapi']['version']   = '0.9.17.509';
+       $setup_info['phpgwapi']['version']   = '0.9.17.510';
        $setup_info['phpgwapi']['versions']['current_header'] = '1.25';
        $setup_info['phpgwapi']['enable']    = 3;
        $setup_info['phpgwapi']['app_order'] = 1;

Index: tables_update.inc.php
===================================================================
RCS file: /sources/phpgwapi/phpgwapi/setup/tables_update.inc.php,v
retrieving revision 1.98
retrieving revision 1.99
diff -u -b -r1.98 -r1.99
--- tables_update.inc.php       18 Oct 2006 12:03:14 -0000      1.98
+++ tables_update.inc.php       23 Oct 2006 13:13:07 -0000      1.99
@@ -5,7 +5,7 @@
        * @license http://www.gnu.org/licenses/gpl.html GNU General Public 
License
        * @package phpgwapi
        * @subpackage setup
-       * @version $Id: tables_update.inc.php,v 1.98 2006/10/18 12:03:14 Caeies 
Exp $
+       * @version $Id: tables_update.inc.php,v 1.99 2006/10/23 13:13:07 
sigurdne Exp $
        * @internal $Source: 
/sources/phpgwapi/phpgwapi/setup/tables_update.inc.php,v $
        */
 
@@ -1536,5 +1536,22 @@
                return $GLOBALS['setup_info']['phpgwapi']['currentver'];
        }
        
+       $test[] = '0.9.17.509';
+       function phpgwapi_upgrade0_9_17_509()
+       {
+               $GLOBALS['phpgw_setup']->oProc->m_odb->transaction_begin();
+
+               
$GLOBALS['phpgw_setup']->oProc->AlterColumn('phpgw_acl','acl_type',array(
+                       'type' => 'int',
+                       'precision' => '2',
+                       'nullable' => True,
+                       'default' => '0'
+               ));
+
+               $GLOBALS['setup_info']['phpgwapi']['currentver'] = '0.9.17.510';
+               $GLOBALS['phpgw_setup']->oProc->m_odb->transaction_commit();
+               return $GLOBALS['setup_info']['phpgwapi']['currentver'];
+       }
+
        
 ?>

Index: tables_current.inc.php
===================================================================
RCS file: /sources/phpgwapi/phpgwapi/setup/tables_current.inc.php,v
retrieving revision 1.69
retrieving revision 1.70
diff -u -b -r1.69 -r1.70
--- tables_current.inc.php      18 Oct 2006 12:03:13 -0000      1.69
+++ tables_current.inc.php      23 Oct 2006 13:13:07 -0000      1.70
@@ -5,7 +5,7 @@
        * @license http://www.gnu.org/licenses/gpl.html GNU General Public 
License
        * @package phpgwapi
        * @subpackage setup
-       * @version $Id: tables_current.inc.php,v 1.69 2006/10/18 12:03:13 
Caeies Exp $
+       * @version $Id: tables_current.inc.php,v 1.70 2006/10/23 13:13:07 
sigurdne Exp $
        * @internal $Source: 
/sources/phpgwapi/phpgwapi/setup/tables_current.inc.php,v $
        */
 
@@ -42,7 +42,7 @@
                                'acl_account' => array('type' => 
'int','precision' => '4'),
                                'acl_rights' => array('type' => 
'int','precision' => '4'),
                                'acl_grantor' => array('type' => 
'int','precision' => '4','nullable' => True),
-                               'acl_type' => array('type' => 'int','precision' 
=> '2','nullable' => True)
+                               'acl_type' => array('type' => 'int','precision' 
=> '2','nullable' => True,'default' => '0')
                        ),
                        'pk' => array(),
                        'ix' => array('acl_location','acl_account'),




reply via email to

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