Forum OpenACS Development: Response to Problems with acs-content-repository content_folder and content_type

change the following code in content_type__drop_attribute from:

  if NOT FOUND then
    raise EXCEPTION ''-20000: Attribute %:% does not exist in content_type.drop_attribute'', content_type, attribute_name;
  end;

To:

  if NOT FOUND then
    raise EXCEPTION ''-20000: Attribute %:% does not exist in content_type.drop_attribute'', drop_attribute__content_type, drop_attribute__attribute_name;
  end;

One other thing to note about this routine is that postgresql doesn't support alter table drop column, so when you drop a type attribute, the column will be left hanging around in the type attribute table. AFAIK there isn't a good work-around for this problem.