-
Notifications
You must be signed in to change notification settings - Fork 19
apimigrationdropreference
Troy Murray edited this page Sep 19, 2011
·
2 revisions
Drop a foreign key constraint from the database, using the reference name that was used to create it.
dropReference(table,referenceName);
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 |
dropReference(table='members',referenceName='membertype');
// note this is really just an alias for
dropForeignKey(table='members',keyName='FK_members_membertypes');