Index: openacs-4/packages/acs-content-repository/sql/postgresql/content-item.sql =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-content-repository/sql/postgresql/content-item.sql,v diff -u -r1.5 -r1.6 --- openacs-4/packages/acs-content-repository/sql/postgresql/content-item.sql 30 Mar 2001 05:31:33 -0000 1.5 +++ openacs-4/packages/acs-content-repository/sql/postgresql/content-item.sql 1 Apr 2001 18:25:55 -0000 1.6 @@ -261,7 +261,47 @@ end;' language 'plpgsql'; +create function content_item__new(varchar,integer,varchar,text,text) +returns integer as ' +declare + new__name alias for $1; + new__parent_id alias for $2; + new__title alias for $3; + new__description alias for $4; + new__text alias for $5; +begin + return content_item__new(new__name, + new__parent_id, + null, + null, + now(), + null, + null, + null, + ''content_item'', + ''content_revision'', + new__title, + new__description, + ''text/plain'', + null, + new__text, + null + ); + +end;' language 'plpgsql'; +create function content_item__new(varchar,integer) returns integer as ' +declare + new__name alias for $1; + new__parent_id alias for $2; +begin + return content_item__new(new__name, + new__parent_id, + null, + null, + null); +end;' language 'plpgsql'; + -- function is_published create function content_item__is_published (integer) returns boolean as '