/** * Drops the specified foreign key from a database table. * If the adapter property is an instance of the \Phinx\Db\Adapter\SQLiteAdapter, * a specific method will be called. The original one from Phinx contains a bug * that can drop a table in certain conditions. * * @param string $tableName * @param string[] $columns Column(s) * @param string|null $constraint Constraint name * @return void */ public function dropForeignKey($tableName, $columns, $constraint = null) { $this->adapter->dropForeignKey($tableName, $columns, $constraint); }