Index: openacs-4/packages/acs-core-docs/www/xml/developers-guide/tutorial-db.xml =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-core-docs/www/xml/developers-guide/tutorial-db.xml,v diff -u -r1.4 -r1.5 --- openacs-4/packages/acs-core-docs/www/xml/developers-guide/tutorial-db.xml 28 Oct 2003 22:07:40 -0000 1.4 +++ openacs-4/packages/acs-core-docs/www/xml/developers-guide/tutorial-db.xml 31 Oct 2003 15:57:36 -0000 1.5 @@ -90,36 +90,16 @@ -- packages/myfirstpackage/sql/myfirstpackage-drop.sql -- drop script -- --- @author rhs@mit.edu +-- @author joel@aufrecht.org -- @cvs-id $Id:$ -- --- THIS SCRIPT IS BROKEN AT THE MOMENT -create function inline_0 () -returns integer as ' -declare - rec record; -begin - for rec in (select folder_id - from cr_folders - where package_id in (select package_id - from apm_packages - where package_key = ''myfirstpackage'')) - loop - perform content_folder__unregister_content_type(rec.folder_id, ''mfp_note'',''t''); - end loop; - return 0; -end;' language 'plpgsql'; -select inline_0(); -drop function inline_0 (); - select content_type__drop_type( - 'mfp_notes', + 'mfp_note', 't', 't' ); - The drop script is a bit hairier than the create script. Run the create script manually to add your tables and functions. [service0@yourserver postgresql]$ psql -f myfirstpackage-create.sql psql:myfirstpackage-create.sql:14: NOTICE: CREATE TABLE / PRIMARY KEY will create implicit index 'mfp_notes_pkey' for table 'mfp_notes'