phpgroupware-cvs
[Top][All Lists]
Advanced

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

[Phpgroupware-cvs] [19071] merging r19070 from 16 branch - fix versions


From: Dave Hall
Subject: [Phpgroupware-cvs] [19071] merging r19070 from 16 branch - fix versions in upgrade script
Date: Wed, 11 Feb 2009 13:54:52 +0000

Revision: 19071
          
http://svn.sv.gnu.org/viewvc/?view=rev&root=phpgroupware&revision=19071
Author:   skwashd
Date:     2009-02-11 13:54:52 +0000 (Wed, 11 Feb 2009)

Log Message:
-----------
merging r19070 from 16 branch - fix versions in upgrade script

Modified Paths:
--------------
    tags/Version-0_9_16-014-proposed/tts/setup/tables_update.inc.php

Modified: tags/Version-0_9_16-014-proposed/tts/setup/tables_update.inc.php
===================================================================
--- tags/Version-0_9_16-014-proposed/tts/setup/tables_update.inc.php    
2009-02-11 13:52:11 UTC (rev 19070)
+++ tags/Version-0_9_16-014-proposed/tts/setup/tables_update.inc.php    
2009-02-11 13:54:52 UTC (rev 19071)
@@ -1,53 +1,67 @@
 <?php
-       
/**************************************************************************\
-       * phpGroupWare - Trouble Ticket System                                  
   *
-       * http://www.phpgroupware.org                                           
   *
-       * --------------------------------------------                          
   *
-       *  This program is free software; you can redistribute it and/or modify 
it *
-       *  under the terms of the GNU General Public License as published by 
the   *
-       *  Free Software Foundation; either version 2 of the License, or (at 
your  *
-       *  option) any later version.                                           
   *
-       
\**************************************************************************/
+       /**
+       * Trouble Ticket System - Setup
+       *
+       * @copyright Copyright (C) 2001-2005 Free Software Foundation, Inc. 
http://www.fsf.org/
+       * @license http://www.gnu.org/licenses/gpl.html GNU General Public 
License
+       * @package tts
+       * @subpackage setup
+       * @version $Id$
+       */
 
-       // $Id$
-       // $Source$
-
        /* This is since the last release */
-       $test[] = '0.9.16';
-       function phpgwapi_upgrade0_9_16()
+       $test[] = '0.8.1.003';
+       
+       /**
+        * Upgrade from 0.8.1.003 to 0.9.16.001
+        * 
+        * @return string New version
+        */
+       function tts_upgrade0_8_1_003()
        {
-               global $setup_info,$phpgw_setup;
-               
-               
$GLOBALS['phpgw_setup']->oProc->AddColumn('phpgw_tts_tickets','type',array(
+               
$GLOBALS['phpgw_setup']->oProc->AddColumn('phpgw_tts_tickets','ticket_type',array(
                        'type' => 'int',
-                       'precision' => '',
-                       'nullable' => True
+                       'precision' => 2,
+                       'nullable' => true
                        ));
                        
-               
$GLOBALS['phpgw_setup']->oProc->AddColumn('phpgw_tts_tickets','deadline',array(
+               
$GLOBALS['phpgw_setup']->oProc->AddColumn('phpgw_tts_tickets','ticket_deadline',array(
                        'type' => 'varchar',
-                       'precision' => '10',
-                       'nullable' => True
+                       'precision' => 10,
+                       'nullable' => true
                        ));
                
-               
$GLOBALS['phpgw_setup']->oProc->AddColumn('phpgw_tts_tickets','effort',array(
+               
$GLOBALS['phpgw_setup']->oProc->AddColumn('phpgw_tts_tickets','ticket_effort',array(
                        'type' => 'varchar',
-                       'precision' => '4',
-                       'nullable' => True
+                       'precision' => 4,
+                       'nullable' => true
                        ));
                        
-               
$GLOBALS['phpgw_setup']->oProc->AddColumn('phpgw_tts_tickets','platform',array(
+               
$GLOBALS['phpgw_setup']->oProc->AddColumn('phpgw_tts_tickets','ticket_platform',array(
                        'type' => 'int',
-                       'precision' => '',
-                       'nullable' => True
+                       'precision' => 2,
+                       'nullable' => true
                        ));
-                       
-               
$GLOBALS['phpgw_setup']->oProc->AddColumn('phpgw_tts_tickets','attachment',array(
+
+               
$GLOBALS['phpgw_setup']->oProc->AddColumn('phpgw_tts_tickets','ticket_attachment',array(
                        'type' => 'int',
-                       'precision' => '',
-                       'nullable' => True
+                       'precision' => 2,
+                       'nullable' => false
                        ));
                
-               $setup_info['phpgwapi']['currentver'] = '0.9.16.001';
-               return $setup_info['phpgwapi']['currentver'];
+               $GLOBALS['setup_info']['tts']['currentver'] = '0.9.16.001';
+               return $GLOBALS['setup_info']['tts']['currentver'];
        }
+
+       $test[] = '0.9.16.001';
+       function tts_upgrade0_9_16_001()
+       {
+               
$GLOBALS['phpgw_setup']->oProc->AddColumn('phpgw_tts_tickets','ticket_lastmod',array(
+                       'type' => 'int',
+                       'precision' => 4,
+                       'nullable' => false
+                       ));
+
+               $GLOBALS['setup_info']['tts']['currentver'] = '0.9.16.002';
+               return $GLOBALS['setup_info']['tts']['currentver'];
+       }






reply via email to

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