Index: openacs-4/packages/acs-kernel/acs-kernel.info =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-kernel/acs-kernel.info,v diff -u -r1.20 -r1.21 --- openacs-4/packages/acs-kernel/acs-kernel.info 16 Jan 2003 13:33:05 -0000 1.20 +++ openacs-4/packages/acs-kernel/acs-kernel.info 27 Jan 2003 10:36:50 -0000 1.21 @@ -7,20 +7,21 @@ t t - + oracle postgresql Don Baccus Routines and data models providing the foundation for OpenACS-based Web services. - 2002-10-27 + 2003-01-24 OpenACS - + + @@ -84,6 +85,7 @@ + @@ -139,8 +141,10 @@ + + @@ -152,46 +156,48 @@ + + - - - - - - - + + - - - - - + - - - + + + + + - + + + + + - - - - - + + - - - - + + + - - - + + + + + + + + + + Index: openacs-4/packages/acs-kernel/sql/oracle/apm-create.sql =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-kernel/sql/oracle/apm-create.sql,v diff -u -r1.13 -r1.14 --- openacs-4/packages/acs-kernel/sql/oracle/apm-create.sql 23 Jan 2003 17:46:48 -0000 1.13 +++ openacs-4/packages/acs-kernel/sql/oracle/apm-create.sql 27 Jan 2003 10:37:05 -0000 1.14 @@ -233,6 +233,7 @@ content_length integer, distribution_uri varchar2(1500), distribution_date date, + auto_mount varchar(50), constraint apm_package_vers_id_name_un unique(package_key, version_name) ); @@ -352,6 +353,12 @@ When was the distribution tarball downloaded. '; +comment on column apm_package_versions.auto_mount is ' + A dir under the main site site node where an instance of the package will be mounted + automatically upon installation. Useful for site-wide services that need mounting + such as general-comments and notifications. +'; + -- Metadata for the apm_package_versions object. declare Index: openacs-4/packages/acs-kernel/sql/oracle/upgrade/upgrade-4.6.1-4.7d.sql =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-kernel/sql/oracle/upgrade/Attic/upgrade-4.6.1-4.7d.sql,v diff -u --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ openacs-4/packages/acs-kernel/sql/oracle/upgrade/upgrade-4.6.1-4.7d.sql 27 Jan 2003 10:37:18 -0000 1.1 @@ -0,0 +1,34 @@ +-- Callbacks +create table apm_package_callbacks ( + version_id integer + constraint apm_package_callbacks_vid_fk + references apm_package_versions(version_id) + on delete cascade, + type varchar(40), + proc varchar(300), + constraint apm_package_callbacks_vt_un + unique (version_id, type) +); + +comment on table apm_package_callbacks is ' + This table holds names of Tcl procedures to invoke at the time (before or after) the package is + installed, instantiated, or mounted. +'; + +comment on column apm_package_callbacks.proc is ' + Name of the Tcl proc. +'; + +comment on column apm_package_callbacks.type is ' + Indicates when the callback proc should be invoked, for example after-install. Valid + values are given by the Tcl proc apm_supported_callback_types. +'; + +-- Auto-mount +alter table apm_package_versions add auto_mount varchar(50); + +comment on column apm_package_versions.auto_mount is ' + A dir under the main site site node where an instance of the package will be mounted + automatically upon installation. Useful for site-wide services that need mounting + such as general-comments and notifications. +'; Index: openacs-4/packages/acs-kernel/sql/postgresql/apm-create.sql =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-kernel/sql/postgresql/apm-create.sql,v diff -u -r1.33 -r1.34 --- openacs-4/packages/acs-kernel/sql/postgresql/apm-create.sql 23 Jan 2003 17:47:04 -0000 1.33 +++ openacs-4/packages/acs-kernel/sql/postgresql/apm-create.sql 27 Jan 2003 10:37:33 -0000 1.34 @@ -293,6 +293,7 @@ content_length integer, distribution_uri varchar(1500), distribution_date timestamp, + auto_mount varchar(50), constraint apm_package_vers_id_name_un unique(package_key, version_name) ); @@ -410,6 +411,12 @@ When was the distribution tarball downloaded. '; +comment on column apm_package_versions.auto_mount is ' + A dir under the main site site node where an instance of the package will be mounted + automatically upon installation. Useful for site-wide services that need mounting + such as general-comments and notifications. +'; + -- Metadata for the apm_package_versions object. create function inline_2 () Index: openacs-4/packages/acs-kernel/sql/postgresql/upgrade/upgrade-4.6.1-4.7d.sql =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-kernel/sql/postgresql/upgrade/Attic/upgrade-4.6.1-4.7d.sql,v diff -u --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ openacs-4/packages/acs-kernel/sql/postgresql/upgrade/upgrade-4.6.1-4.7d.sql 27 Jan 2003 10:37:47 -0000 1.1 @@ -0,0 +1,34 @@ +-- Callbacks +create table apm_package_callbacks ( + version_id integer + constraint apm_package_callbacks_vid_fk + references apm_package_versions(version_id) + on delete cascade, + type varchar(40), + proc varchar(300), + constraint apm_package_callbacks_vt_un + unique (version_id, type) +); + +comment on table apm_package_callbacks is ' + This table holds names of Tcl procedures to invoke at the time (before or after) the package is + installed, instantiated, or mounted. +'; + +comment on column apm_package_callbacks.proc is ' + Name of the Tcl proc. +'; + +comment on column apm_package_callbacks.type is ' + Indicates when the callback proc should be invoked, for example after-install. Valid + values are given by the Tcl proc apm_supported_callback_types. +'; + +-- Auto-mount +alter table apm_package_versions add auto_mount varchar(50); + +comment on column apm_package_versions.auto_mount is ' + A dir under the main site site node where an instance of the package will be mounted + automatically upon installation. Useful for site-wide services that need mounting + such as general-comments and notifications. +';