[ Index ]
 

Code source de eGroupWare 1.2.106-2

Accédez au Source d'autres logiciels libresSoutenez Angelica Josefina !

title

Body

[fermer]

/phpgwapi/setup/ -> tables_update_0_9_12.inc.php (source)

   1  <?php
   2    /**************************************************************************\
   3    * eGroupWare - Setup                                                       *
   4    * http://www.egroupware.org                                                *
   5    * --------------------------------------------                             *
   6    *  This program is free software; you can redistribute it and/or modify it *
   7    *  under the terms of the GNU General Public License as published by the   *
   8    *  Free Software Foundation; either version 2 of the License, or (at your  *
   9    *  option) any later version.                                              *
  10    \**************************************************************************/
  11  
  12    /* $Id: tables_update_0_9_12.inc.php 16306 2004-08-09 12:40:51Z reinerj $ */
  13  
  14      $test[] = '0.9.10';
  15  	function phpgwapi_upgrade0_9_10()
  16      {
  17          global $setup_info;
  18          $setup_info['phpgwapi']['currentver'] = '0.9.11.001';
  19          return $setup_info['phpgwapi']['currentver'];
  20          //return True;
  21      }
  22  
  23      $test[] = '0.9.11.001';
  24  	function phpgwapi_upgrade0_9_11_001()
  25      {
  26          global $setup_info;
  27          $setup_info['phpgwapi']['currentver'] = '0.9.11.002';
  28          return $setup_info['phpgwapi']['currentver'];
  29          //return True;
  30      }
  31  
  32      $test[] = '0.9.11.002';
  33  	function phpgwapi_upgrade0_9_11_002()
  34      {
  35          global $phpgw_info, $phpgw_setup;
  36  
  37          $phpgw_setup->oProc->AddColumn('phpgw_categories','cat_main',array('type' => 'int', 'precision' => 4, 'default' => 0, 'nullable' => False));
  38          $phpgw_setup->oProc->AddColumn('phpgw_categories','cat_level',array('type' => 'int', 'precision' => 4, 'default' => 0, 'nullable' => False));
  39  
  40          $setup_info['phpgwapi']['currentver'] = '0.9.11.003';
  41          return $setup_info['phpgwapi']['currentver'];
  42      }
  43  
  44      $test[] = '0.9.11.003';
  45  	function phpgwapi_upgrade0_9_11_003()
  46      {
  47          global $setup_info;
  48          $setup_info['phpgwapi']['currentver'] = '0.9.11.004';
  49          return $setup_info['phpgwapi']['currentver'];
  50          //return True;
  51      }
  52  
  53      $test[] = '0.9.11.004';
  54  	function phpgwapi_upgrade0_9_11_004()
  55      {
  56          global $setup_info, $phpgw_setup;
  57  
  58          $phpgw_setup->oProc->AddColumn('phpgw_config','config_app', array('type' => 'varchar', 'precision' => 50));
  59          $phpgw_setup->oProc->query("UPDATE phpgw_config SET config_app='phpgwapi'",__LINE__,__FILE__);
  60  
  61          $setup_info['phpgwapi']['currentver'] = '0.9.11.005';
  62          return $setup_info['phpgwapi']['currentver'];
  63          //return True;
  64      }
  65  
  66      $test[] = '0.9.11.005';
  67  	function phpgwapi_upgrade0_9_11_005()
  68      {
  69          global $setup_info, $phpgw_setup;
  70  
  71          $phpgw_setup->oProc->AddColumn('phpgw_accounts','account_expires', array('type' => 'int', 'precision' => 4));
  72          $phpgw_setup->oProc->query("UPDATE phpgw_accounts SET account_expires='-1'",__LINE__,__FILE__);
  73  
  74          $setup_info['phpgwapi']['currentver'] = '0.9.11.006';
  75          return $setup_info['phpgwapi']['currentver'];
  76          //return True;
  77      }
  78  
  79      $test[] = '0.9.11.006';
  80  	function phpgwapi_upgrade0_9_11_006()
  81      {
  82          global $setup_info;
  83          $setup_info['phpgwapi']['currentver'] = '0.9.11.007';
  84          return $setup_info['phpgwapi']['currentver'];
  85          //return True;
  86      }
  87  
  88      $test[] = '0.9.11.007';
  89  	function phpgwapi_upgrade0_9_11_007()
  90      {
  91          global $setup_info;
  92          $setup_info['phpgwapi']['currentver'] = '0.9.11.008';
  93          return $setup_info['phpgwapi']['currentver'];
  94          //return True;
  95      }
  96  
  97      $test[] = '0.9.11.008';
  98  	function phpgwapi_upgrade0_9_11_008()
  99      {
 100          global $setup_info, $phpgw_setup;
 101  
 102          $phpgw_setup->oProc->DropTable('profiles');
 103          
 104          $setup_info['phpgwapi']['currentver'] = '0.9.11.009';
 105          return $setup_info['phpgwapi']['currentver'];
 106          //return True;
 107      }
 108  
 109      $test[] = '0.9.11.009';
 110  	function phpgwapi_upgrade0_9_11_009()
 111      {
 112          global $setup_info;
 113          $setup_info['phpgwapi']['currentver'] = '0.9.11.010';
 114          return $setup_info['phpgwapi']['currentver'];
 115          //return True;
 116      }
 117  
 118      $test[] = '0.9.11.010';
 119  	function phpgwapi_upgrade0_9_11_010()
 120      {
 121          global $setup_info;
 122          $setup_info['phpgwapi']['currentver'] = '0.9.13.001';
 123          return $setup_info['phpgwapi']['currentver'];
 124          //return True;
 125      }
 126  
 127      $test[] = '0.9.11.011';
 128  	function phpgwapi_upgrade0_9_11_011()
 129      {
 130          global $setup_info;
 131  
 132          $setup_info['phpgwapi']['currentver'] = '0.9.13.001';
 133          return $setup_info['phpgwapi']['currentver'];
 134      }
 135  ?>


Généré le : Sun Feb 25 17:20:01 2007 par Balluche grâce à PHPXref 0.7