-
-
Notifications
You must be signed in to change notification settings - Fork 57
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow %s_bin in SQL field definitions #1286
Comments
|
Because those fields are not case-insensitive. But I agree that we should allow |
|
Please use the SQL definition as array, that should probably automatically fix it ;-)
|
|
Really? How is this supposed to work? |
Even if you use the array, you'd still have to hard code the collation, wouldn't you? @leofeyer what about using instead of |
|
|
Nope, the schema update tries to generate a |
|
@fritzmg's suggestion |
|
Is there a difference between the two? According to Stackoverflow I would say we actually do want |
|
No, according to exactly the post you have linked to, we do not want
|
|
Why you should not map |
|
Since we cannot make Doctrine handle the
@contao/developers What is your favorite solution? |
|
But we are not storing a binary string, we are storing binary data, are we not? According to that link:
vs.
VARBINARY sounds more reasonable for me? |
|
We are storing a binary string (e.g. |
|
See #1300. |
Description ----------- This PR fixes #1286 as discussed with @aschempp. It handles the following cases: * `'sql' => "varchar(128) BINARY NOT NULL default ''"` * `'sql' => ['type' => 'string', 'length' => 128, 'not_null' => false, 'default' => '', 'customSchemaOptions' => ['case_sensitive' => true]]` Commits ------- 3a02e11 Use the `BINARY` flag instead of `COLLATE utf8mb4_bin` (see #1286). 8de2862 Throw an exception if both a collation and the binary flag are set. 9fb1db5 Revert the exception changes.
January 4th, 2018, 09:29 GMT
Btw. why do all the
aliasfields use a hardcodedutf8mb4_bincollation now anyway? Even if you setthe collation of these fields would still be
utf8mb4_bin.The text was updated successfully, but these errors were encountered: