Index: openacs-4/packages/acs-subsite/tcl/attribute-procs-postgresql.xql =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-subsite/tcl/attribute-procs-postgresql.xql,v diff -u -r1.2 -r1.3 --- openacs-4/packages/acs-subsite/tcl/attribute-procs-postgresql.xql 15 May 2001 16:59:00 -0000 1.2 +++ openacs-4/packages/acs-subsite/tcl/attribute-procs-postgresql.xql 11 Aug 2001 21:31:03 -0000 1.3 @@ -67,4 +67,56 @@ + + +select acs_attribute__drop_attribute(:object_type, :attribute_name) + + + + + +select acs_attribute__create_attribute ( + '$object_type', + '$attribute_name', + '$datatype', + '$pretty_name', + '$pretty_plural', + NULL, + NULL, + '$default_value', + '$min_n_values', + '$max_n_values', + NULL, + 'type_specific', + 'f' +); + + + + + +alter table $table_name drop column $attribute_name + + + + + +alter table $table_name add $attribute_name $sql_type + + + + + +select acs_attribute__drop_attribute(:object_type, :attribute_name) + + + + + + + +alter table $table_name rename column $column_name to __DELETED__$column_name + + +