Skip to content

apimigrationdropforeignkey

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

dropForeignKey()

Usage

Drop a foreign key constraint from the database.

Function Syntax

dropForeignKey(table,keyName);

Parameters

Parameter Type Required Default Description
table string Yes table name
keyName boolean Yes name of foreign key constraint

Examples

dropForeignKey(table='members',keyName='FK_members_membertypes');
Clone this wiki locally