Index: openacs-4/contrib/packages/simulation/sql/postgresql/simulation-drop.sql
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/contrib/packages/simulation/sql/postgresql/Attic/simulation-drop.sql,v
diff -u -r1.11 -r1.12
--- openacs-4/contrib/packages/simulation/sql/postgresql/simulation-drop.sql	1 Dec 2003 13:07:12 -0000	1.11
+++ openacs-4/contrib/packages/simulation/sql/postgresql/simulation-drop.sql	1 Dec 2003 14:10:44 -0000	1.12
@@ -191,12 +191,14 @@
 create function inline_0 ()
 returns integer as '
 begin
-    perform acs_privilege__drop_privilege(''sim_template_create'');
-    perform acs_privilege__drop_privilege(''sim_inst'');
-    perform acs_privilege__drop_privilege(''sim_object_create'');
-    perform acs_privilege__drop_privilege(''sim_object_write'');
-    perform acs_privilege__drop_privilege(''sim_set_map_p'');
+    perform acs_privilege__remove_child(''sim_admin'',''sim_template_create'');
+    perform acs_privilege__remove_child(''sim_admin'',''sim_inst'');
+    perform acs_privilege__remove_child(''sim_admin'',''sim_object_create'');
+    perform acs_privilege__remove_child(''sim_admin'',''sim_object_write'');
+    perform acs_privilege__remove_child(''sim_admin'',''sim_set_map_p'');
 
+    perform acs_privilege__drop_privilege(''sim_admin'');
+
     return null;
 end;' language 'plpgsql';
 
