Index: openacs-4/packages/cms/sql/postgresql/cms-create.sql
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/cms/sql/postgresql/cms-create.sql,v
diff -u -r1.11.2.3 -r1.11.2.4
--- openacs-4/packages/cms/sql/postgresql/cms-create.sql	7 Jun 2005 20:51:49 -0000	1.11.2.3
+++ openacs-4/packages/cms/sql/postgresql/cms-create.sql	9 Jun 2005 21:15:26 -0000	1.11.2.4
@@ -125,6 +125,7 @@
   package_id		     integer 
 			     constraint cm_modules_pkg_id_fk
                              references apm_packages
+                             on delete cascade
 );
 
 comment on column cm_modules.root_key is '
@@ -300,7 +301,7 @@
 -- drop function inline_1 ();
 
 -- map subsites to cms package
-create table subsite_package_map (
+create table cms_subsite_package_map (
  subsite_id	integer,
  package_id	integer
                 constraint subsite_package_map_pkg_id_fk references
