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, 1.37.2.6.2.13, 1.37.2.6


From: Chris Weiss <address@hidden>
Subject: [Phpgroupware-cvs] phpgwapi/setup setup.inc.php, 1.37.2.6.2.13, 1.37.2.6.2.14 tables_update.inc.php, 1.53.2.9.2.20, 1.53.2.9.2.21
Date: Mon, 20 Oct 2003 14:35:21 +0000

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

Modified Files:
      Tag: Version-0_9_16-branch
        setup.inc.php tables_update.inc.php 
Log Message:
update for logging


Index: setup.inc.php
===================================================================
RCS file: /cvsroot/phpgroupware/phpgwapi/setup/setup.inc.php,v
retrieving revision 1.37.2.6.2.13
retrieving revision 1.37.2.6.2.14
diff -C2 -d -r1.37.2.6.2.13 -r1.37.2.6.2.14
*** setup.inc.php       19 Oct 2003 01:34:03 -0000      1.37.2.6.2.13
--- setup.inc.php       20 Oct 2003 14:35:18 -0000      1.37.2.6.2.14
***************
*** 16,20 ****
        $setup_info['phpgwapi']['name']      = 'phpgwapi';
        $setup_info['phpgwapi']['title']     = 'phpgwapi';
!       $setup_info['phpgwapi']['version']   = '0.9.14.510';
        $setup_info['phpgwapi']['versions']['current_header'] = '1.24';
        $setup_info['phpgwapi']['enable']    = 3;
--- 16,20 ----
        $setup_info['phpgwapi']['name']      = 'phpgwapi';
        $setup_info['phpgwapi']['title']     = 'phpgwapi';
!       $setup_info['phpgwapi']['version']   = '0.9.14.511';
        $setup_info['phpgwapi']['versions']['current_header'] = '1.24';
        $setup_info['phpgwapi']['enable']    = 3;

Index: tables_update.inc.php
===================================================================
RCS file: /cvsroot/phpgroupware/phpgwapi/setup/tables_update.inc.php,v
retrieving revision 1.53.2.9.2.20
retrieving revision 1.53.2.9.2.21
diff -C2 -d -r1.53.2.9.2.20 -r1.53.2.9.2.21
*** tables_update.inc.php       19 Oct 2003 01:34:03 -0000      1.53.2.9.2.20
--- tables_update.inc.php       20 Oct 2003 14:35:18 -0000      1.53.2.9.2.21
***************
*** 1804,1806 ****
--- 1804,1838 ----
                return $GLOBALS['setup_info']['phpgwapi']['currentver'];
        }
+ 
+       $test[] = '0.9.14.510';
+       //fix some languages to be ISO 639 compliant
+       //Source: http://www.geo-guide.de/info/tools/languagecode.html
+       function phpgwapi_upgrade0_9_14_510()
+       {
+               // Set up the new logging tables        
+               $GLOBALS['phpgw_setup']->oProc->DropTable('phpgw_log_msg');
+               // just drop and re-create.  We don't need to save it and the 
structure has changed alot
+               $GLOBALS['phpgw_setup']->oProc->DropTable('phpgw_log');
+               $GLOBALS['phpgw_setup']->oProc->CreateTable('phpgw_log',array(
+                       'fd' => array(
+                               'log_id' => array('type' => 'auto','precision' 
=> '4','nullable' => False),
+                               'log_date' => array('type' => 
'timestamp','nullable' => False),
+                               'log_account_id' => array('type' => 
'int','precision' => '4','nullable' => False),
+                               'log_account_lid' => array('type' => 
'varchar','precision' => '25','nullable' => False),
+                               'log_app' => array('type' => 
'varchar','precision' => '25','nullable' => False),
+                               'log_severity' => array('type' => 
'char','precision' => '1','nullable' => False),
+                               'log_file' => array('type' => 
'varchar','precision' => '255','nullable' => False, 'default' => ''),
+                               'log_line' => array('type' => 'int','precision' 
=> '4','nullable' => False, 'default' => '0'),
+                               'log_msg' => array('type' => 'text','nullable' 
=> False)
+                       ),
+                       'pk' => array('log_id'),
+                       'fk' => array(),
+                       'ix' => array(),
+                       'uc' => array()
+               ));
+               $GLOBALS['phpgw_setup']->oProc->query("INSERT INTO phpgw_config 
(config_app, config_name, config_value) VALUES ('phpgwapi','log_levels', '" . 
serialize(array( 'global_level' => 'E', 'module' => array(), 'user' => 
array())) ."')");
+               
+               $GLOBALS['setup_info']['phpgwapi']['currentver'] = '0.9.14.511';
+               return $GLOBALS['setup_info']['phpgwapi']['currentver'];
+       }
  ?>





reply via email to

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