Skip to content
Snippets Groups Projects
Commit b9fc5bf0 authored by Stan Hu's avatar Stan Hu Committed by Regis
Browse files

Merge branch 'fix-issue-assignee-trigger' into 'master'

Check if OLD is set when migrating issue assignees

Closes #32439

See merge request !11461
parent 962eb555
No related branches found
No related tags found
1 merge request!12258Update Prometheus Merge Request Metrics page
Pipeline #
Loading
Loading
@@ -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
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment