Skip to content

Migrator

dropForeignKey()

dropForeignKey() — returns void

Available in: migration Category: Migration Functions

Drops a foreign key constraint from the database Only available in a migration CFC

NameTypeRequiredDefaultDescription
tablestringyesThe table name to perform the operation on
keyNamestringyesthe name of the key to drop