Skip to content

Migrator

dropReference()

dropReference() — returns void

Available in: migration Category: Migration Functions

Drop a foreign key constraint from the database, using the reference name that was used to create it Only available in a migration CFC

NameTypeRequiredDefaultDescription
tablestringyesThe table name to perform the operation on
referenceNamestringyesthe name of the reference to drop