Index: openacs-4/packages/acs-kernel/sql/postgresql/upgrade/upgrade-5.2.0d3-5.2.0d4.sql
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/acs-kernel/sql/postgresql/upgrade/upgrade-5.2.0d3-5.2.0d4.sql,v
diff -u -r1.1 -r1.2
--- openacs-4/packages/acs-kernel/sql/postgresql/upgrade/upgrade-5.2.0d3-5.2.0d4.sql	26 Apr 2004 18:50:52 -0000	1.1
+++ openacs-4/packages/acs-kernel/sql/postgresql/upgrade/upgrade-5.2.0d3-5.2.0d4.sql	24 Jun 2004 15:03:55 -0000	1.2
@@ -2,8 +2,9 @@
 -- TODO: Migrate this to use acs_attributes instead?
 create table apm_package_version_attr (
     version_id         integer
-		       constraint apm_package_vers_attr_vid_fk	
-		       references apm_package_versions(version_id)
+                       constraint apm_package_vers_attr_vid_fk
+                       references apm_package_versions(version_id)
+                       on delete cascade
                        constraint apm_package_vers_attr_vid_nn
                        not null,
     attribute_name     varchar(100)
