"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:
parent
60d4fe1199
commit
ba3fcc2470
8 changed files with 161 additions and 4 deletions
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue