}
$taskId = $this->_add($name, $desc, $start, $due, $priority, $estimate,
- $completed, $category, $alarm, $methods, $uid, $parent,
- $private, $owner, $assignee);
+ $completed, $category, $alarm, $methods, $uid,
+ $parent, $private, $owner, $assignee);
if (is_a($taskId, 'PEAR_Error')) {
return $taskId;
}
* @param integer $alarm The alarm associated with the task.
* @param array $methods The overridden alarm notification methods.
* @param string $uid A Unique Identifier for the task.
- * @param string $parent The parent task.
+ * @param string $parent The parent task id.
* @param boolean $private Whether the task is private.
* @param string $owner The owner of the event.
* @param string $assignee The assignee of the event.
* @param integer $alarm The alarm associated with the task.
* @param array $methods The overridden alarm notification
* methods.
- * @param string $parent The parent task.
+ * @param string $parent The parent task id.
* @param boolean $private Whether the task is private.
* @param string $owner The owner of the event.
* @param string $assignee The assignee of the event.
* @param integer $completed The completion state of the task.
* @param string $category The category of the task.
* @param integer $alarm The alarm associated with the task.
- * @param string $parent The parent task.
+ * @param string $parent The parent task id.
* @param boolean $private Whether the task is private.
* @param string $owner The owner of the event.
* @param string $assignee The assignee of the event.
* @param string $category The category of the task.
* @param integer $alarm The alarm associated with the task.
* @param string $uid A Unique Identifier for the task.
- * @param string $parent The parent task.
+ * @param string $parent The parent task id.
* @param boolean $private Whether the task is private.
* @param string $owner The owner of the event.
* @param string $assignee The assignee of the event.
* @param integer $completed The completion state of the task.
* @param string $category The category of the task.
* @param integer $alarm The alarm associated with the task.
- * @param string $parent The parent task.
+ * @param string $parent The parent task id.
* @param boolean $private Whether the task is private.
* @param string $owner The owner of the event.
* @param string $assignee The assignee of the event.
* @param string $category The category of the task.
* @param integer $alarm The alarm associated with the task.
* @param string $uid A Unique Identifier for the task.
- * @param string $parent The parent task.
+ * @param string $parent The parent task id.
* @param boolean $private Whether the task is private.
* @param string $owner The owner of the event.
* @param string $assignee The assignee of the event.
}
if ($parent) {
- list($parent, $dummy) = $this->_splitId($parent);
+ list($parent,) = $this->_splitId($parent);
}
if ($private) {
* @param string $category The category of the task.
* @param integer $alarm The alarm associated with the task.
* @param string $uid A Unique Identifier for the task.
- * @param string $parent The parent task.
+ * @param string $parent The parent task id.
* @param boolean $private Whether the task is private.
* @param string $owner The owner of the event.
* @param string $assignee The assignee of the event.
* @param integer $completed The completion state of the task.
* @param string $category The category of the task.
* @param integer $alarm The alarm associated with the task.
- * @param string $parent The parent task.
+ * @param string $parent The parent task id.
* @param boolean $private Whether the task is private.
* @param string $owner The owner of the event.
* @param string $assignee The assignee of the event.
* @param integer $alarm The alarm associated with the task.
* @param array $methods The overridden alarm notification methods.
* @param string $uid A Unique Identifier for the task.
- * @param string $parent The parent task.
+ * @param string $parent The parent task id.
* @param boolean $private Whether the task is private.
* @param string $owner The owner of the event.
* @param string $assignee The assignee of the event.
(int)$alarm,
serialize(Horde_String::convertCharset($methods, Horde_Nls::getCharset(), $this->_params['charset'])),
(int)$private,
- Horde_String::convertCharset($parent, Horde_Nls::getCharset(), $this->_params['charset']));
+ $parent);
/* Log the query at a DEBUG log level. */
Horde::logMessage(sprintf('Nag_Driver_Sql::_add(): %s', $query),
* @param integer $alarm The alarm associated with the task.
* @param array $methods The overridden alarm notification
* methods.
- * @param string $parent The parent task.
+ * @param string $parent The parent task id.
* @param boolean $private Whether the task is private.
* @param string $owner The owner of the event.
* @param string $assignee The assignee of the event.
Horde_String::convertCharset($category, Horde_Nls::getCharset(), $this->_params['charset']),
(int)$alarm,
serialize(Horde_String::convertCharset($methods, Horde_Nls::getCharset(), $this->_params['charset'])),
- Horde_String::convertCharset($parent, Horde_Nls::getCharset(), $this->_params['charset']),
+ $parent,
(int)$private,
$this->_tasklist,
$taskId);
task_id VARCHAR(32) NOT NULL,
task_owner VARCHAR(255) NOT NULL,
task_creator VARCHAR(255) NOT NULL,
- task_parent VARCHAR(255) NOT NULL,
+ task_parent VARCHAR(255),
task_assignee VARCHAR(255),
task_name VARCHAR(255) NOT NULL,
task_uid VARCHAR(255) NOT NULL,
task_id VARCHAR2(32) NOT NULL,
task_owner VARCHAR2(255) NOT NULL,
task_creator VARCHAR2(255) NOT NULL,
- task_parent VARCHAR2(255) NOT NULL,
+ task_parent VARCHAR2(255),
task_assignee VARCHAR2(255),
task_name VARCHAR2(255) NOT NULL,
task_uid VARCHAR2(255) NOT NULL,
task_id VARCHAR(32) NOT NULL,
task_owner VARCHAR(255) NOT NULL,
task_creator VARCHAR(255) NOT NULL,
- task_parent VARCHAR(255) NOT NULL,
+ task_parent VARCHAR(255),
task_assignee VARCHAR(255),
task_name VARCHAR(255) NOT NULL,
task_uid VARCHAR(255) NOT NULL,
<name>task_parent</name>
<type>text</type>
<length>32</length>
- <notnull>true</notnull>
</field>
<field>
ALTER TABLE nag_tasks ADD task_estimate FLOAT;
ALTER TABLE nag_tasks ADD task_completed_date NUMBER(16);
ALTER TABLE nag_tasks ADD task_start NUMBER(16);
-ALTER TABLE nag_tasks ADD task_parent VARCHAR2(32) DEFAULT '';
-UPDATE nag_tasks SET task_parent = '';
-ALTER TABLE nag_tasks MODIFY (task_parent NOT NULL);
+ALTER TABLE nag_tasks ADD task_parent VARCHAR2(32);
CREATE INDEX nag_start_idx ON nag_tasks (task_start);
ALTER TABLE nag_tasks ADD task_estimate FLOAT;
ALTER TABLE nag_tasks ADD task_completed_date INT;
ALTER TABLE nag_tasks ADD task_start INT;
-ALTER TABLE nag_tasks ADD task_parent VARCHAR(32) DEFAULT '' NOT NULL;
+ALTER TABLE nag_tasks ADD task_parent VARCHAR(32);
CREATE INDEX nag_start_idx ON nag_tasks (task_start);
-ALTER TABLE nag_tasks ADD task_parent VARCHAR(32) DEFAULT '' NOT NULL;
+ALTER TABLE nag_tasks ADD task_parent VARCHAR(32);