<?php
	/**************************************************************************\
	* phpGroupWare - Setup                                                     *
	* 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.                                              *
	\**************************************************************************/

	// $Id: tables_update.inc.php,v 1.1.1.1 2004/04/06 23:35:07 kazuyan Exp $
	// $Source: /cvsroot/phpgwjp/tts/setup/tables_update.inc.php,v $

	/* This is since the last release */
	$test[] = '0.9.16';
	function phpgwapi_upgrade0_9_16()
	{
		global $setup_info,$phpgw_setup;
		
		$GLOBALS['phpgw_setup']->oProc->AddColumn('phpgw_tts_tickets','type',array(
			'type' => 'int',
			'precision' => '',
			'nullable' => True
			));
			
		$GLOBALS['phpgw_setup']->oProc->AddColumn('phpgw_tts_tickets','deadline',array(
			'type' => 'varchar',
			'precision' => '10',
			'nullable' => True
			));
		
		$GLOBALS['phpgw_setup']->oProc->AddColumn('phpgw_tts_tickets','effort',array(
			'type' => 'varchar',
			'precision' => '4',
			'nullable' => True
			));
			
		$GLOBALS['phpgw_setup']->oProc->AddColumn('phpgw_tts_tickets','platform',array(
			'type' => 'int',
			'precision' => '',
			'nullable' => True
			));
			
		$GLOBALS['phpgw_setup']->oProc->AddColumn('phpgw_tts_tickets','attachment',array(
			'type' => 'int',
			'precision' => '',
			'nullable' => True
			));
		
		$setup_info['phpgwapi']['currentver'] = '0.9.16.001';
		return $setup_info['phpgwapi']['currentver'];
	}

?>
