Index: openacs-4/packages/acs-core-docs/www/tutorial-database.html =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-core-docs/www/tutorial-database.html,v diff -u -r1.35.2.4 -r1.35.2.5 --- openacs-4/packages/acs-core-docs/www/tutorial-database.html 1 Dec 2005 17:45:51 -0000 1.35.2.4 +++ openacs-4/packages/acs-core-docs/www/tutorial-database.html 15 Dec 2005 19:27:49 -0000 1.35.2.5 @@ -1,7 +1,7 @@
We create all database objects with scripts in the
myfirstpackage/sql/
directory. All
database scripts are database-specific and are thus in either
the myfirstpackage/sql/oracle
or
@@ -31,13 +31,13 @@
repository functions to simplify our database creation. (More
information about ACS Objects. More information about the
Content Repository.)
-
The top of each sql file has some +
The top of each sql file has some
standard comments, including doc tags such as
@author
which will be picked up
by the API browser. The string
$Id$
will automatically be
expanded when the file is checked in to cvs.
[$OPENACS_SERVICE_NAME ~]$cd /var/lib/aolserver/$OPENACS_SERVICE_NAME/packages/myfirstpackage/sql/postgresql
-[$OPENACS_SERVICE_NAME postgresql]$emacs myfirstpackage-create.sql
Paste the text below into the file, save, and close.
Figure�9.3.�The Database Creation Script
-- creation script
+[$OPENACS_SERVICE_NAME postgresql]$ emacs myfirstpackage-create.sql
Paste the text below into the file, save, and close.
Figure�9.3.�The Database Creation Script
-- creation script -- -- @author joel@aufrecht.org -- @cvs-id &Id:$ @@ -61,7 +61,7 @@ object. Notice the use of "mfp." This is derived from "My First Package" and ensures that our object is unlikely to conflict with objects from other packages.Create a database file to drop everything if the package is uninstalled.
-[$OPENACS_SERVICE_NAME postgresql]$emacs myfirstpackage-drop.sql