Commit dbbf0fd
authored
Add collation support for uuid columns in MySQL (#19290)
The uuid type generates CHAR(36) SQL but was not included in the
$hasCollate array, causing column collation to be silently ignored.
This fix adds TYPE_UUID to the $hasCollate array in MysqlSchemaDialect
so that collation is properly applied to uuid columns.
Refs cakephp/migrations#1020
* Add collation support for uuid columns in MySQL
The uuid type generates CHAR(36) SQL but was not included in the
$hasCollate array, causing column collation to be silently ignored.
This fix:
1. Adds TYPE_UUID to the $hasCollate array in MysqlSchemaDialect
2. Adds 'uuid' to $_columnExtras in TableSchema to allow 'collate'
attribute to be preserved when adding columns
Refs cakephp/migrations#10201 parent f0b893e commit dbbf0fd
2 files changed
+4
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
834 | 834 | | |
835 | 835 | | |
836 | 836 | | |
| 837 | + | |
837 | 838 | | |
838 | 839 | | |
839 | 840 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
144 | 144 | | |
145 | 145 | | |
146 | 146 | | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
147 | 150 | | |
148 | 151 | | |
149 | 152 | | |
| |||
0 commit comments