Refactor project log insertion in SQL migration
- Removed team_member_id from project_logs insert statements.
This commit is contained in:
@@ -350,8 +350,8 @@ BEGIN
|
|||||||
RETURNING id INTO _project_id;
|
RETURNING id INTO _project_id;
|
||||||
|
|
||||||
-- register the project log
|
-- register the project log
|
||||||
INSERT INTO project_logs (project_id, team_id, team_member_id, description)
|
INSERT INTO project_logs (project_id, team_id, description)
|
||||||
VALUES (_project_id, _team_id, _team_member_id, _project_created_log)
|
VALUES (_project_id, _team_id, _project_created_log)
|
||||||
RETURNING id INTO _project_created_log_id;
|
RETURNING id INTO _project_created_log_id;
|
||||||
|
|
||||||
-- add the team member in the project as a user
|
-- add the team member in the project as a user
|
||||||
@@ -360,8 +360,8 @@ BEGIN
|
|||||||
(SELECT id FROM project_access_levels WHERE key = 'MEMBER'));
|
(SELECT id FROM project_access_levels WHERE key = 'MEMBER'));
|
||||||
|
|
||||||
-- register the project log
|
-- register the project log
|
||||||
INSERT INTO project_logs (project_id, team_id, team_member_id, description)
|
INSERT INTO project_logs (project_id, team_id, description)
|
||||||
VALUES (_project_id, _team_id, _team_member_id, _project_member_added_log);
|
VALUES (_project_id, _team_id, _project_member_added_log);
|
||||||
|
|
||||||
-- insert default project columns
|
-- insert default project columns
|
||||||
PERFORM insert_task_list_columns(_project_id);
|
PERFORM insert_task_list_columns(_project_id);
|
||||||
|
|||||||
Reference in New Issue
Block a user