Merge branch 'fix-issue-assignee-trigger' into 'master'
Check if OLD is set when migrating issue assignees Closes #32439 See merge request !11461
This commit is contained in:
commit
0b946a7bc6
1 changed files with 1 additions and 1 deletions
|
@ -47,7 +47,7 @@ class MigrateAssigneeToSeparateTable < ActiveRecord::Migration
|
|||
RETURNS trigger AS
|
||||
$BODY$
|
||||
BEGIN
|
||||
if OLD.assignee_id IS NOT NULL THEN
|
||||
if OLD IS NOT NULL AND OLD.assignee_id IS NOT NULL THEN
|
||||
DELETE FROM issue_assignees WHERE issue_id = OLD.id;
|
||||
END IF;
|
||||
|
||||
|
|
Loading…
Reference in a new issue