Index: openacs-4/contrib/packages/portal/sql/postgresql/portal-package-create.sql
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/contrib/packages/portal/sql/postgresql/portal-package-create.sql,v
diff -u -r1.5 -r1.6
--- openacs-4/contrib/packages/portal/sql/postgresql/portal-package-create.sql	1 Feb 2004 03:08:11 -0000	1.5
+++ openacs-4/contrib/packages/portal/sql/postgresql/portal-package-create.sql	12 Feb 2004 21:31:19 -0000	1.6
@@ -102,7 +102,7 @@
                 v_page.name,
                 v_portal_id,
                 v_page.layout_id,
-                null,
+                ''portal_page'',
                 p_creation_date,
                 p_creation_user,
                 p_creation_ip,
@@ -121,8 +121,8 @@
 
                 insert
                 into portal_elements
-                (element_id, name, page_id, datasource_id, region, sort_key, state, shadeable_p, hideable_p)
-                select v_new_element_id, name, v_page_id, datasource_id, region, sort_key, state, shadeable_p, hideable_p
+                (element_id, application_id, name, page_id, datasource_id, region, sort_key, state, shadeable_p, hideable_p)
+                select v_new_element_id, application_id, name, v_page_id, datasource_id, region, sort_key, state, shadeable_p, hideable_p
                 from portal_elements
                 where element_id = v_element.element_id;
 
