[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Phpgroupware-cvs] [19070] fix versions in upgrade script
From: |
Dave Hall |
Subject: |
[Phpgroupware-cvs] [19070] fix versions in upgrade script |
Date: |
Wed, 11 Feb 2009 13:52:11 +0000 |
Revision: 19070
http://svn.sv.gnu.org/viewvc/?view=rev&root=phpgroupware&revision=19070
Author: skwashd
Date: 2009-02-11 13:52:11 +0000 (Wed, 11 Feb 2009)
Log Message:
-----------
fix versions in upgrade script
Modified Paths:
--------------
branches/Version-0_9_16-branch/tts/setup/tables_update.inc.php
Modified: branches/Version-0_9_16-branch/tts/setup/tables_update.inc.php
===================================================================
--- branches/Version-0_9_16-branch/tts/setup/tables_update.inc.php
2009-02-11 13:45:24 UTC (rev 19069)
+++ branches/Version-0_9_16-branch/tts/setup/tables_update.inc.php
2009-02-11 13:52:11 UTC (rev 19070)
@@ -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'];
+ }
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Phpgroupware-cvs] [19070] fix versions in upgrade script,
Dave Hall <=