Index: openacs-4/packages/acs-content-repository/sql/postgresql/content-revision.sql
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/acs-content-repository/sql/postgresql/content-revision.sql,v
diff -u -N -r1.35.2.1 -r1.35.2.2
--- openacs-4/packages/acs-content-repository/sql/postgresql/content-revision.sql	21 Dec 2004 18:22:30 -0000	1.35.2.1
+++ openacs-4/packages/acs-content-repository/sql/postgresql/content-revision.sql	6 Jan 2005 16:31:29 -0000	1.35.2.2
@@ -329,7 +329,7 @@
 
 
 -- procedure delete
-select define_function_args('content_revision__delete','revision_id');
+select define_function_args('content_revision__del','revision_id');
 create or replace function content_revision__delete (integer)
 returns integer as '
 declare
@@ -392,7 +392,18 @@
   return 0; 
 end;' language 'plpgsql';
 
+select define_function_args('content_revision__delete','revision_id');
 
+create or replace function content_revision__delete (integer)
+returns integer as '
+declare
+  delete__revision_id    alias for $1;  
+begin
+        PERFORM content_revision__del(delete__revision_id);
+  return 0; 
+end;' language 'plpgsql';
+
+
 -- function get_number
 select define_function_args('content_revision__get_number','revision_id');
 create or replace function content_revision__get_number (integer)
