Index: openacs-4/packages/dynamic-types/sql/postgresql/dtype-package-create.sql
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/dynamic-types/sql/postgresql/dtype-package-create.sql,v
diff -u -r1.4 -r1.5
--- openacs-4/packages/dynamic-types/sql/postgresql/dtype-package-create.sql	26 May 2005 10:27:58 -0000	1.4
+++ openacs-4/packages/dynamic-types/sql/postgresql/dtype-package-create.sql	29 Aug 2005 15:34:37 -0000	1.5
@@ -276,6 +276,8 @@
   end if;
 
   -- Drop the attribute
+  delete from dtype_attributes where attribute_id = v_attr_id;
+
   PERFORM acs_attribute__drop_attribute(p_object_type, 
                                         p_attribute_name);