A FOREIGN KEY is a key used to link two tables together.
Syntax
$this->addForeignKey(name, table, column, referringTable, referringColumn, delete, update);
// delete options: RESTRICT, CASCADE, NO ACTION, SET DEFAULT, SET NULL
// update options: RESTRICT, CASCADE, NO ACTION, SET DEFAULT, SET NULL
Comments
Post a Comment