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
Setting a custom column collation in conjunction with the ->change() method in a migration doesn't work. The framework completely ignores the ->collation('') method, because there is not such thing as a "setCollation" option in Doctrine DBAL.
If Doctrine doesn't offers this then isn't this more of a feature request than a bug to support it? It doesn't explicitly say in the docs that we support this (although I can understand that it's a bit confusing).
Description:
Setting a custom column collation in conjunction with the
->change()
method in a migration doesn't work. The framework completely ignores the->collation('')
method, because there is not such thing as a "setCollation" option in Doctrine DBAL.framework/src/Illuminate/Database/Schema/Grammars/ChangeColumn.php
Line 83 in b4c0ef1
The collation can be set though by using the
setCustomSchemaOption
on Doctrine's column builder:https://www.doctrine-project.org/projects/doctrine-dbal/en/2.9/reference/schema-representation.html#vendor-specific-options
Steps To Reproduce:
Create a new migration:
And create another one:
Proposed change:
Before i create a pull request, i'd like to hear your thoughts on this:
https://github.com/JacksonIV/framework/blob/37c3a6decc9c6dc5f47dff0105b3c533bd7ac786/src/Illuminate/Database/Schema/Grammars/ChangeColumn.php#L83-L88
The text was updated successfully, but these errors were encountered: