Unclassified NewsBoard Code Reference

IDatabase.ChangeField function

Alter a field (column) name or type in a table

function IDatabase.ChangeField ($table, $oldname, $name, $type);

Parameters:

table
(string) table name
oldname
(string) current column name
name
(string) new column name
type
(string) new column type: "bool", "int[(length)] [unsigned]",
"varchar(length) [binary]", "text" (MySQL Doc: 6.2)

Member of class: IDatabase

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

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