Skip to content

Commit c737e57

Browse files
authored
Merge pull request #1142 from stackhpc/fix-sql
Fix SQL query to enable updating trusts
2 parents 56e4175 + e5a6d23 commit c737e57

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

doc/source/operations/upgrading.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -132,13 +132,13 @@ Some things to watch out for:
132132

133133
.. code-block:: sql
134134
135-
UPDATE trust_role
135+
UPDATE trust_role as tr
136136
SET role_id = '<MEMBER-ROLE-ID>'
137137
WHERE role_id = '<OLD-ROLE-ID>'
138138
AND NOT EXISTS (
139139
SELECT 1
140140
FROM trust_role
141-
WHERE trust_id = trust_role.trust_id
141+
WHERE trust_id = tr.trust_id
142142
AND role_id = '<MEMBER-ROLE-ID>'
143143
);
144144

0 commit comments

Comments
 (0)