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
tablestringyes—The table name to perform the operation on
keyNamestringyes—the name of the key to drop