Index: openacs-4/packages/chat/sql/postgresql/upgrade/upgrade-6.0.0d1-6.0.0d2.sql
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/chat/sql/postgresql/upgrade/Attic/upgrade-6.0.0d1-6.0.0d2.sql,v
diff -u -r1.1.2.1 -r1.1.2.2
--- openacs-4/packages/chat/sql/postgresql/upgrade/upgrade-6.0.0d1-6.0.0d2.sql	1 Mar 2019 17:40:56 -0000	1.1.2.1
+++ openacs-4/packages/chat/sql/postgresql/upgrade/upgrade-6.0.0d1-6.0.0d2.sql	4 Mar 2019 14:45:13 -0000	1.1.2.2
@@ -8,5 +8,7 @@
 --- @cvs-id $Id$
 ---
 
-PERFORM acs_privilege__remove_child('chat_room_admin', 'chat_avatar_allow');
-PERFORM acs_privilege__drop_privilege('chat_avatar_allow');
+begin;
+    select acs_privilege__remove_child('chat_room_admin', 'chat_avatar_allow');
+    select acs_privilege__drop_privilege('chat_avatar_allow');
+end;
