Migrator
dropForeignKey()
Signature
Section titled “Signature”dropForeignKey() — returns void
Available in: migration
Category: Migration Functions
Description
Section titled “Description”Drops a foreign key constraint from the database Only available in a migration CFC
Parameters
Section titled “Parameters”| Name | Type | Required | Default | Description |
|---|---|---|---|---|
table | string | yes | — | The table name to perform the operation on |
keyName | string | yes | — | the name of the key to drop |