Unclassified NewsBoard Code Reference

IDatabase.AddIndex function

Add an index to a table

function IDatabase.AddIndex ($table, $type, $name);

Parameters:

type
(string) index type: "index", "primary key", "unique", "fulltext" (MySQL Doc: 6.5.4)
name
(string) names of fields (columns) to create index over
(comma-separated, also a single name possible)
table

Member of class: IDatabase

Implementation file: unb_lib/database.lib.php, line 362

© 2006 Yves Goergen. Unclassified NewsBoard Homepage. Reference based on UNB unb.devel.20060128, dated 2006-01-28.