[ Index ]
 

Code source de eGroupWare 1.2.106-2

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

title

Body

[fermer]

/polls/setup/ -> tables_update.inc.php (source)

   1  <?php
   2    /**************************************************************************\
   3    * eGroupWare - Setup                                                       *
   4    * http://www.eGroupWare.org                                                *
   5    * Created by eTemplates DB-Tools written by ralfbecker@outdoor-training.de *
   6    * --------------------------------------------                             *
   7    * This program is free software; you can redistribute it and/or modify it  *
   8    * under the terms of the GNU General Public License as published by the    *
   9    * Free Software Foundation; either version 2 of the License, or (at your   *
  10    * option) any later version.                                               *
  11    \**************************************************************************/
  12  
  13    /* $Id: tables_update.inc.php 16311 2004-08-09 13:46:03Z reinerj $ */
  14  
  15      $test[] = '0.8.1';
  16  	function polls_upgrade0_8_1()
  17      {
  18          $GLOBALS['phpgw_setup']->oProc->AlterColumn('phpgw_polls_desc','poll_title',array(
  19              'type' => 'varchar',
  20              'precision' => '120',
  21              'nullable' => False
  22          ));
  23          $GLOBALS['phpgw_setup']->oProc->AlterColumn('phpgw_polls_data','option_text',array(
  24              'type' => 'varchar',
  25              'precision' => '100',
  26              'nullable' => False
  27          ));
  28  
  29          $GLOBALS['setup_info']['polls']['currentver'] = '0.9.1';
  30          return $GLOBALS['setup_info']['polls']['currentver'];
  31      }
  32  
  33      $test[] = '0.9.1';
  34  	function polls_upgrade0_9_1()
  35      {
  36          $GLOBALS['setup_info']['polls']['currentver'] = '1.0.0';
  37          return $GLOBALS['setup_info']['polls']['currentver'];
  38      }
  39  ?>


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