<?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.3 2001/05/18 03:32:46 milosch Exp $ */

	$test[] = "0.9.3pre1";
	function todo_upgrade0_9_3pre1()
	{
		global $phpgw_info;
		v0_9_2to0_9_3update_owner("todo","todo_owner");
		$phpgw_info["setup"]["currentver"]["phpgwapi"] = "0.9.3pre2";
	}

	$test[] = "0.9.3pre3";
	function todo_upgrade0_9_3pre3()
	{
		global $phpgw_info, $oProc;

		$oProc->AddColumn("todo", "todo_id_parent", array("type" => "int", "precision" => 4, "nullable" => false, "default" => "0"));

		$phpgw_info["setup"]["currentver"]["todo"] = "0.9.3pre4";
	}

	$test[] = "0.9.4pre3";
	function todo_upgrade0_9_4pre3()
	{
		global $phpgw_info, $oProc;

		$oProc->AddColumn("todo", "todo_startdate", array("type" => "int", "precision" => 4));
		$oProc->RenameColumn("todo", "todo_datedue", "todo_enddate");

		$phpgw_info["setup"]["currentver"]["todo"] = "0.9.4pre4";
	}
?>
