"Add dependencies" implemented

A few bugs in the SQL scripts have been fixed. It is now possible to add
new dependencies to a task from the details page.
This commit is contained in:
Emmanuel BENOîT 2012-02-05 20:55:09 +01:00
parent 60d4fe1199
commit ba3fcc2470
8 changed files with 161 additions and 4 deletions

View file

@ -22,6 +22,7 @@ GRANT SELECT,UPDATE ON notes_note_id_seq TO :webapp_user;
CREATE SEQUENCE task_dependencies_taskdep_id_seq INCREMENT 1
MINVALUE 1 MAXVALUE 9223372036854775807
START 1 CACHE 1;
GRANT SELECT,UPDATE ON task_dependencies_taskdep_id_seq TO :webapp_user;
-- Tables

View file

@ -287,7 +287,7 @@ CREATE OR REPLACE FUNCTION tasks_add_dependency( t_id INT , t_dependency INT )
SECURITY INVOKER
AS $tasks_add_dependency$
BEGIN
INSERT INTO task_dependencies( task_id , task_id_depends_on )
INSERT INTO task_dependencies( task_id , task_id_depends )
VALUES ( t_id , t_dependency );
RETURN 0;
EXCEPTION