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.7.2.2 -r1.7.2.3 --- openacs-4/packages/acs-core-docs/www/xml/developers-guide/tutorial-db.xml 29 Nov 2003 15:17:54 -0000 1.7.2.2 +++ openacs-4/packages/acs-core-docs/www/xml/developers-guide/tutorial-db.xml 15 Dec 2003 14:18:48 -0000 1.7.2.3 @@ -55,7 +55,7 @@ by the API browser. The string $Id:$ will automatically be expanded when the file is checked in to cvs. -[service0@yourserver postgresql]$ emacs myfirstpackage-create.sql +[service0 postgresql]$ emacs myfirstpackage-create.sql Paste this into the file and save and close.
Database Creation Script - master create file @@ -88,7 +88,7 @@ Create a database file to drop everything if the package is uninstalled. - [service0@yourserver postgresql]$ emacs myfirstpackage-drop.sql + [service0 postgresql]$ emacs myfirstpackage-drop.sql
Database deletion script -- packages/myfirstpackage/sql/myfirstpackage-drop.sql @@ -107,24 +107,24 @@
Run the create script manually to add your tables and functions. - [service0@yourserver postgresql]$ psql -f myfirstpackage-create.sql + [service0 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' psql:myfirstpackage-create.sql:14: NOTICE: CREATE TABLE will create implicit trigger(s) for FOREIGN KEY check(s) content_type__create_type --------------------------- 0 (1 row) -[service0@yourserver postgresql]$ +[service0 postgresql]$ If there are errors, use them to debug the sql file and try again. If there are errors in the database table creation, you may need to run the drop script to drop the table so that you can recreate it. The drop script will probably have errors since some of the things it's trying to drop may be missing. They can be ignored. Once you get the same output as shown above, test the drop script: - [service0@yourserver postgresql]$ psql -f myfirstpackage-drop.sql + [service0 postgresql]$ psql -f myfirstpackage-drop.sql content_type__drop_type ------------------------- 0 (1 row) -[service0@yourserver postgresql]$ +[service0 postgresql]$ Once both scripts are working without errors, run the create script one last time and proceed.