Migrator
dropReference()
Signature
Section titled “Signature”dropReference() — returns void
Available in: migration
Category: Migration Functions
Description
Section titled “Description”Drop a foreign key constraint from the database, using the reference name that was used to create it 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 |
referenceName | string | yes | — | the name of the reference to drop |