xo::db::require proc references (public)

 xo::db::require[i] references [ -table table ] [ -col col ] [ -ref ref ]

Defined in /var/www/openacs/packages/xotcl-core/tcl/05-db-procs.tcl

Add a foreign key if the specified relationship does not already exist.

Switches:
-table (optional)
Table to alter.
-col (optional)
Column name.
-ref (optional)
Referenced table or table(column) with optional SQL clauses. A table alone must have a single-column primary key.

Testcases:
xotcl_core_tutorial_2
[ show source ]
Show another procedure: