Skip to content

apimigrationdropreference

Troy Murray edited this page Sep 19, 2011 · 2 revisions

dropReference()

Usage

Drop a foreign key constraint from the database, using the reference name that was used to create it.

Function Syntax

dropReference(table,referenceName);

Parameters

Parameter Type Required Default Description
table string Yes Name of an existing table
referenceName string Yes name of reference that was used to create the foreign key constraint

Examples

dropReference(table='members',referenceName='membertype');
// note this is really just an alias for
dropForeignKey(table='members',keyName='FK_members_membertypes');
Clone this wiki locally