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.34 -r1.35
--- openacs-4/packages/acs-kernel/sql/postgresql/apm-create.sql	27 Jan 2003 10:37:33 -0000	1.34
+++ openacs-4/packages/acs-kernel/sql/postgresql/apm-create.sql	29 Jan 2003 09:44:33 -0000	1.35
@@ -706,7 +706,7 @@
     select v.package_key, t.package_uri, t.pretty_name, t.singleton_p, t.initial_install_p,
            v.version_id, v.version_name,
            v.version_uri, v.summary, v.description_format, v.description, v.release_date,
-           v.vendor, v.vendor_uri, v.enabled_p, v.installed_p, v.tagged_p, v.imported_p, v.data_model_loaded_p,
+           v.vendor, v.vendor_uri, v.auto_mount, v.enabled_p, v.installed_p, v.tagged_p, v.imported_p, v.data_model_loaded_p,
            v.activation_date, v.deactivation_date,
            coalesce(v.content_length,0) as tarball_length,
            distribution_uri, distribution_date
@@ -1897,7 +1897,7 @@
 end;' language 'plpgsql';
 
 -- create or replace package body apm_package_version 
-create function apm_package_version__new (integer,varchar,varchar,varchar,varchar,varchar,varchar,timestamp with time zone,varchar,varchar,boolean,boolean) returns integer as '
+create function apm_package_version__new (integer,varchar,varchar,varchar,varchar,varchar,varchar,timestamp with time zone,varchar,varchar,varchar,boolean,boolean) returns integer as '
 declare
       apm_pkg_ver__version_id           alias for $1;  -- default null
       apm_pkg_ver__package_key		alias for $2;
@@ -1909,8 +1909,9 @@
       apm_pkg_ver__release_date		alias for $8;
       apm_pkg_ver__vendor               alias for $9;
       apm_pkg_ver__vendor_uri		alias for $10;
-      apm_pkg_ver__installed_p		alias for $11; -- default ''f''		
-      apm_pkg_ver__data_model_loaded_p	alias for $12; -- default ''f''
+      apm_pkg_ver__auto_mount           alias for $11;
+      apm_pkg_ver__installed_p		alias for $12; -- default ''f''		
+      apm_pkg_ver__data_model_loaded_p	alias for $13; -- default ''f''
       v_version_id                      apm_package_versions.version_id%TYPE;
 begin
       if apm_pkg_ver__version_id is null then
@@ -1932,12 +1933,12 @@
 
       insert into apm_package_versions
       (version_id, package_key, version_name, version_uri, summary, description_format, description,
-      release_date, vendor, vendor_uri, installed_p, data_model_loaded_p)
+      release_date, vendor, vendor_uri, auto_mount, installed_p, data_model_loaded_p)
       values
       (v_version_id, apm_pkg_ver__package_key, apm_pkg_ver__version_name, 
        apm_pkg_ver__version_uri, apm_pkg_ver__summary, 
        apm_pkg_ver__description_format, apm_pkg_ver__description,
-       apm_pkg_ver__release_date, apm_pkg_ver__vendor, apm_pkg_ver__vendor_uri,
+       apm_pkg_ver__release_date, apm_pkg_ver__vendor, apm_pkg_ver__vendor_uri, apm_pkg_ver__auto_mount,
        apm_pkg_ver__installed_p, apm_pkg_ver__data_model_loaded_p);
 
       return v_version_id;		
@@ -2018,10 +2019,10 @@
 
 	insert into apm_package_versions(version_id, package_key, version_name,
 					version_uri, summary, description_format, description,
-					release_date, vendor, vendor_uri)
+					release_date, vendor, vendor_uri, auto_mount)
 	    select v_version_id, package_key, copy__new_version_name,
 		   copy__new_version_uri, summary, description_format, description,
-		   release_date, vendor, vendor_uri
+		   release_date, vendor, vendor_uri, auto_mount
 	    from apm_package_versions
 	    where version_id = copy__version_id;
     
@@ -2048,7 +2049,7 @@
 
 
 -- function edit
-create function apm_package_version__edit (integer,integer,varchar,varchar,varchar,varchar,varchar,timestamp with time zone,varchar,varchar,boolean,boolean)
+create function apm_package_version__edit (integer,integer,varchar,varchar,varchar,varchar,varchar,timestamp with time zone,varchar,varchar,varchar,boolean,boolean)
 returns integer as '
 declare
   edit__new_version_id         alias for $1;  -- default null  
@@ -2061,8 +2062,9 @@
   edit__release_date           alias for $8;  
   edit__vendor                 alias for $9;  
   edit__vendor_uri             alias for $10; 
-  edit__installed_p            alias for $11; -- default ''f''
-  edit__data_model_loaded_p    alias for $12; -- default ''f''
+  edit__auto_mount             alias for $11;
+  edit__installed_p            alias for $12; -- default ''f''
+  edit__data_model_loaded_p    alias for $13; -- default ''f''
   v_version_id                 apm_package_versions.version_id%TYPE;
   version_unchanged_p          integer;       
 begin
@@ -2091,6 +2093,7 @@
 		release_date = date_trunc(''days'',now()),
 		vendor = edit__vendor,
 		vendor_uri = edit__vendor_uri,
+                auto_mount = edit__auto_mount,
 		installed_p = edit__installed_p,
 		data_model_loaded_p = edit__data_model_loaded_p
 	    where version_id = v_version_id;
