phpgroupware-cvs
[Top][All Lists]
Advanced

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

[Phpgroupware-cvs] tts/setup/tables_update.inc.php, 1.3


From: nomail
Subject: [Phpgroupware-cvs] tts/setup/tables_update.inc.php, 1.3
Date: Tue, 14 Dec 2004 21:04:21 +0100

Update of /tts/setup
Modified Files:
        Branch: 
          tables_update.inc.php

date: 2004/12/14 20:04:21;  author: fipsfuchs;  state: Exp;  lines: +35 -21

Log Message:
wrong method name fixed
=====================================================================
Index: tts/setup/tables_update.inc.php
diff -u tts/setup/tables_update.inc.php:1.2 tts/setup/tables_update.inc.php:1.3
--- tts/setup/tables_update.inc.php:1.2 Mon Oct 11 09:43:14 2004
+++ tts/setup/tables_update.inc.php     Tue Dec 14 20:04:21 2004
@@ -14,42 +14,56 @@
 
        /* This is since the last release */
        $test[] = '0.9.16';
-       function phpgwapi_upgrade0_9_16()
+       function tts_upgrade0_9_16()
        {
                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'];
+               $setup_info['tts']['currentver'] = '0.9.16.001';
+               return $setup_info['tts']['currentver'];
+       }
+
+       $test[] = '0.9.16.001';
+       function tts_upgrade0_9_16_001() {
+               global $setup_info,$phpgw_setup;
+
+               
$GLOBALS['phpgw_setup']->oProc->AddColumn('phpgw_tts_tickets','ticket_lastmod',array(
+                       'type' => 'int',
+                       'precision' => 4,
+                       'nullable' => false
+                       ));
+
+               $setup_info['tts']['currentver'] = '0.9.16.002';
+               return $setup_info['tts']['currentver'];
        }
 
 ?>




reply via email to

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