Index: openacs-4/packages/acs-kernel/sql/postgresql/acs-metadata-create.sql
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/acs-kernel/sql/postgresql/acs-metadata-create.sql,v
diff -u -N -r1.41 -r1.42
--- openacs-4/packages/acs-kernel/sql/postgresql/acs-metadata-create.sql	31 Jul 2011 23:11:46 -0000	1.41
+++ openacs-4/packages/acs-kernel/sql/postgresql/acs-metadata-create.sql	27 Oct 2014 16:39:35 -0000	1.42
@@ -462,7 +462,7 @@
 	sort_order	integer not null,
 	datatype	varchar(50) not null
 			constraint acs_attributes_datatype_fk
-			references acs_datatypes (datatype),
+			references acs_datatypes (datatype) on update cascade,
 	default_value	text,
 	min_n_values	integer default 1 not null
 			constraint acs_attributes_min_n_values_ck
