[ Index ]
 

Code source de eGroupWare 1.2.106-2

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

title

Body

[fermer]

/registration/setup/ -> tables_update.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.inc.php 20295 2006-02-15 12:31:25Z  $ */
  13  
  14      $test[] = '0.8.1';
  15  	function registration_upgrade0_8_1()
  16      {
  17          global $setup_info, $phpgw_setup;
  18  
  19          $phpgw_setup->oProc->CreateTable('phpgw_reg_fields', array(
  20              'fd' => array(
  21                  'field_name' => array('type' => 'varchar', 'precision' => 255,'nullable' => False),
  22                  'field_text' => array('type' => 'text','nullable' => False),
  23                  'field_type' => array('type' => 'varchar', 'precision' => 255,'nullable' => True),
  24                  'field_values' => array('type' => 'text','nullable' => True),
  25                  'field_required' => array('type' => 'char', 'precision' => 1,'nullable' => True),
  26                  'field_order' => array('type' => 'int', 'precision' => 4,'nullable' => True)
  27              ),
  28              'pk' => array(),
  29              'ix' => array(),
  30              'fk' => array(),
  31              'uc' => array()
  32          ));
  33  
  34          $setup_info['registration']['currentver'] = '0.8.2';
  35          return $setup_info['registration']['currentver'];
  36      }
  37  
  38      $test[] = '0.8.2';
  39  	function registration_upgrade0_8_2()
  40      {
  41          $setup_info['registration']['currentver'] = '1.0.1';
  42          return $setup_info['registration']['currentver'];
  43      }
  44  
  45      $test[] = '1.0.0';
  46  	function registration_upgrade1_0_0()
  47      {
  48          $setup_info['registration']['currentver'] = '1.0.1';
  49          return $setup_info['registration']['currentver'];
  50      }
  51      
  52          $test[] = '1.0.1';
  53  	function registration_upgrade1_0_1()
  54      {
  55          $GLOBALS['egw_setup']->oProc->RenameTable('phpgw_reg_fields','egw_reg_fields');
  56          $GLOBALS['egw_setup']->oProc->RenameTable('phpgw_reg_accounts','egw_reg_accounts');
  57          return $GLOBALS['setup_info']['registration']['currentver'] = '1.2';
  58      }


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