Skip to content

dropForeignKey does not allow removal of constraints containing whitespaces #924

@nijencc

Description

@nijencc

The code from ./src/Db/Adapter/MysqlAdapter.php:700-707 in MysqlAdapter::dropForeigKey(...) at Lines 700-707, doesn't quote $constraint with MysqlAdapter::quoteColumnName(...).
As a result, dropping a foreign key constraint with whitespaces (which made me notice it), e.g. "i am a silly test", is not possible.
My current workaround is to quote the name with backticks, manually.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions