diff --git a/doc/source/operations/upgrading.rst b/doc/source/operations/upgrading.rst index cbb79e455..2b6028fc8 100644 --- a/doc/source/operations/upgrading.rst +++ b/doc/source/operations/upgrading.rst @@ -132,13 +132,13 @@ Some things to watch out for: .. code-block:: sql - UPDATE trust_role + UPDATE trust_role as tr SET role_id = '' WHERE role_id = '' AND NOT EXISTS ( SELECT 1 FROM trust_role - WHERE trust_id = trust_role.trust_id + WHERE trust_id = tr.trust_id AND role_id = '' );