You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
MYSQL define NULL column names for conditional unique constraint
when I run orm:schema-tool:update command I get the following error
Error thrown while running command "orm:schema-tool:update". Message: "Doctrine\DBAL\Schema\Index::_addColumn(): Argument #1 ($column) must be of type string, null given, called in /doctrine/dbal/src/Schema/Index.php on line 72" ["exception" => TypeError { …},"command" => "orm:schema-tool:update","message" => "Doctrine\DBAL\Schema\Index::_addColumn(): Argument #1 ($column) must be of type string, null given, called in /doctrine/dbal/src/Schema/Index.php on line 72"]
Current behavior
_addColumn method expects string
Expected behavior
it should allow null
How to reproduce
CREATE UNIQUE INDEX UNIQUE_IDX_example ON example_table (column1, (case when column2 is null then -1 else column2 end))
orm:schema-tool:update
The text was updated successfully, but these errors were encountered:
Bug Report
Summary
MYSQL define NULL column names for conditional unique constraint
when I run orm:schema-tool:update command I get the following error
Error thrown while running command "orm:schema-tool:update". Message: "Doctrine\DBAL\Schema\Index::_addColumn(): Argument #1 ($column) must be of type string, null given, called in /doctrine/dbal/src/Schema/Index.php on line 72" ["exception" => TypeError { …},"command" => "orm:schema-tool:update","message" => "Doctrine\DBAL\Schema\Index::_addColumn(): Argument #1 ($column) must be of type string, null given, called in /doctrine/dbal/src/Schema/Index.php on line 72"]
Current behavior
_addColumn method expects string
Expected behavior
it should allow null
How to reproduce
CREATE UNIQUE INDEX UNIQUE_IDX_example ON example_table (column1, (case when column2 is null then -1 else column2 end))
orm:schema-tool:update
The text was updated successfully, but these errors were encountered: