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.20 -r1.21 --- openacs-4/packages/acs-content-repository/sql/postgresql/content-type.sql 23 Aug 2001 02:26:21 -0000 1.20 +++ openacs-4/packages/acs-content-repository/sql/postgresql/content-type.sql 24 Aug 2001 04:07:00 -0000 1.21 @@ -275,15 +275,15 @@ 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; + end if; -- Drop the attribute PERFORM acs_attribute__drop_attribute(drop_attribute__content_type, drop_attribute__attribute_name); -- FIXME: postgresql does not support drop column. -- Drop the column if neccessary - if drop_attribute__drop_column and ''f'' then + if drop_attribute__drop_column and ''f''::boolean then execute ''alter table '' || v_table || '' drop column '' || drop_attribute__attribute_name;