home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip 2004 April
/
CMCD0404.ISO
/
Software
/
Freeware
/
Programare
/
dotproject
/
db
/
upgrade_100_alpha1_to_alpha2.sql
< prev
next >
Wrap
Text File
|
2003-05-18
|
1KB
|
29 lines
# $Id: upgrade_100_alpha1_to_alpha2.sql,v 1.4 2003/05/18 11:47:20 eddieajau Exp $
#
# Upgrade dotProject DB Schema
# Version 1.0 alpha 1 to alpha 2
# Fix misspelled table field names [modified to specify incorrect field names then new field names]
ALTER TABLE `tasks` CHANGE `task_precent_complete` `task_percent_complete` TINYINT(4) DEFAULT "0";
ALTER TABLE `projects` CHANGE `project_precent_complete` `project_percent_complete` TINYINT(4) DEFAULT "0";
# Alterations to the task log table
# This adds better information capture/support for other pluggins to use information
ALTER TABLE `task_log` ADD `task_log_hours` FLOAT DEFAULT "0" NOT NULL;
ALTER TABLE `task_log` ADD `task_log_date` DATETIME;
ALTER TABLE `task_log` ADD `task_log_costcode` VARCHAR(8) NOT NULL default '';
ALTER TABLE `task_log` DROP `task_log_parent`;
# copy across task comments to task log table
INSERT INTO task_log (task_log_task, task_log_name, task_log_description, task_log_creator, task_log_date)
SELECT comment_task, comment_title, comment_body, comment_user, comment_date FROM task_comments;
# uncomment when satisfied data has been copied successfully
#DROP TABLE task_comments;
# increase the description fields
ALTER TABLE `companies` CHANGE `company_description` `company_description` TEXT;
ALTER TABLE `departments` CHANGE `dept_desc` `dept_desc` TEXT;
ALTER TABLE `files` CHANGE `file_description` `file_description` TEXT;