From 7846dab57191f0de85f63745b9a8d30a3b939aa2 Mon Sep 17 00:00:00 2001 From: Stevan Earl Date: Mon, 6 Jul 2026 10:48:38 -0700 Subject: [PATCH] Backport roles: fix sdb_unkpair checks in pair validation --- db/schemas/lib/triggers/create/roles.m4 | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/db/schemas/lib/triggers/create/roles.m4 b/db/schemas/lib/triggers/create/roles.m4 index 3f085bb..7989651 100644 --- a/db/schemas/lib/triggers/create/roles.m4 +++ b/db/schemas/lib/triggers/create/roles.m4 @@ -736,8 +736,8 @@ CREATE OR REPLACE FUNCTION roles_insert_commit_func () END IF; END IF; - IF NEW.role = 'sdb_mutual' - OR NEW.role = 'sdb_unkpart' THEN + IF NEW.role = 'sdb_mutual' + OR NEW.role = 'sdb_unkpair' THEN -- When there is one of these Roles, the event must have another ROLES -- row that has a the same Role. SELECT events.behavior ,events.start, events.stop @@ -958,9 +958,9 @@ CREATE OR REPLACE FUNCTION roles_delete_commit_func () END; END IF; - -- The sdb_mutual and sdb_unkpart roles must come in pairs. + -- The sdb_mutual and sdb_unkpair roles must come in pairs. IF OLD.role = 'sdb_mutual' - OR OLD.role = 'sdb_unkpart' THEN + OR OLD.role = 'sdb_unkpair' THEN -- When there is one of these Roles, the event must have another ROLES -- row that has the same Role. -- 2.34.1