xo::db::sql::acs_attribute proc create_attribute (public)
xo::db::sql::acs_attribute create_attribute [ -dbn dbn ] \ -object_type object_type -attribute_name attribute_name \ -datatype datatype -pretty_name pretty_name \ [ -pretty_plural pretty_plural ] [ -table_name table_name ] \ [ -column_name column_name ] [ -default_value default_value ] \ [ -min_n_values min_n_values ] [ -max_n_values max_n_values ] \ [ -sort_order sort_order ] [ -storage storage ] \ [ -static_p static_p ] [ -create_column_p create_column_p ] \ [ -database_type database_type ] [ -size size ] [ -null_p null_p ] \ [ -references references ] [ -check_expr check_expr ] \ [ -column_spec column_spec ]
Defined in /var/www/openacs.org/packages/xotcl-core/tcl/05-db-procs.tcl
Automatically generated method
- Switches:
- -dbn (optional)
- -object_type (required)
- -attribute_name (required)
- -datatype (required)
- -pretty_name (required)
- -pretty_plural (optional)
- -table_name (optional)
- -column_name (optional)
- -default_value (optional)
- -min_n_values (optional, defaults to
"1"
)- -max_n_values (optional, defaults to
"1"
)- -sort_order (optional)
- -storage (optional, defaults to
"type_specific"
)- -static_p (optional, defaults to
"f"
)- -create_column_p (optional, defaults to
"f"
)- -database_type (optional)
- -size (optional)
- -null_p (optional, defaults to
"t"
)- -references (optional)
- -check_expr (optional)
- -column_spec (optional)
- Testcases:
- xotcl_core_tutorial_2