Index: openacs-4/packages/imsld/sql/postgresql/imsld-production-delivery-package-create.sql
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/imsld/sql/postgresql/imsld-production-delivery-package-create.sql,v
diff -u -N -r1.3 -r1.4
--- openacs-4/packages/imsld/sql/postgresql/imsld-production-delivery-package-create.sql	29 Jun 2006 09:27:57 -0000	1.3
+++ openacs-4/packages/imsld/sql/postgresql/imsld-production-delivery-package-create.sql	25 Sep 2006 13:13:31 -0000	1.4
@@ -161,13 +161,14 @@
     return 0; 
 end;' language 'plpgsql';
 
-select define_function_args('imsld_attribute_instance__new','instance_id,owner_id,type,identifier,run_id,is_visible_p,title,with_control_p');
+select define_function_args('imsld_attribute_instance__new','instance_id,owner_id,type,identifier,run_id,user_id,is_visible_p,title,with_control_p');
 create or replace function imsld_attribute_instance__new (
     integer,        -- instance_id
     integer,        -- owner_id
     varchar,        -- type
     varchar,        -- identifier
     integer,        -- run_id
+    integer,        -- user_id
     varchar,        -- is_visible_p
     varchar,        -- title
     varchar         -- with_control_p
@@ -179,9 +180,10 @@
     p_type alias for $3;
     p_identifier alias for $4;
     p_run_id alias for $5;
-    p_is_visible_p alias for $6;
-    p_title alias for $7;
-    p_with_control_p alias for $8;
+    p_user_id alias for $6;
+    p_is_visible_p alias for $7;
+    p_title alias for $8;
+    p_with_control_p alias for $9;
 
     v_attribute_instance_id        integer;
 
@@ -190,8 +192,8 @@
     select acs_object_id_seq.nextval
     into v_attribute_instance_id from dual;
 
-    insert into imsld_attribute_instances (instance_id, owner_id, type, identifier, run_id, is_visible_p, title, with_control_p)
-    values (v_attribute_instance_id, p_owner_id, p_type, p_identifier, p_run_id, p_is_visible_p, p_title, p_with_control_p);
+    insert into imsld_attribute_instances (instance_id, owner_id, type, identifier, run_id, user_id,  is_visible_p, title, with_control_p)
+    values (v_attribute_instance_id, p_owner_id, p_type, p_identifier, p_run_id, p_user_id, p_is_visible_p, p_title, p_with_control_p);
 
     return v_attribute_instance_id;
 end;
