Index: openacs-4/packages/acs-content-repository/sql/postgresql/content-type.sql
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/acs-content-repository/sql/postgresql/content-type.sql,v
diff -u -r1.27 -r1.28
--- openacs-4/packages/acs-content-repository/sql/postgresql/content-type.sql	5 Mar 2003 17:02:10 -0000	1.27
+++ openacs-4/packages/acs-content-repository/sql/postgresql/content-type.sql	17 May 2003 09:43:09 -0000	1.28
@@ -723,7 +723,8 @@
   select count(*) into v_exists 
     from cr_type_children
     where parent_type = register_child_type__parent_type
-    and child_type = register_child_type__child_type;
+    and child_type = register_child_type__child_type
+    and relation_tag = register_child_type__relation_tag;
 
   if v_exists = 0 then
 
