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
When updating schema in our Symfony application with doctrine:schema:update --force --complete alter table statement is invalid for json columns.
Current behaviour
Generated alter look like so: ALTER TABLE my_table CHANGE data data JSON CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '(DC2Type:json)';
Removing CHARACTER SET utf8mb4 gives a correct statement.
I suspect that this comes from the dbal now supporting the native json format from mariadb instead of relying on longtext. I think this changes should be investigated: #5916
Bug Report
Summary
When updating schema in our Symfony application with
doctrine:schema:update --force --complete
alter table statement is invalid for json columns.Current behaviour
Generated alter look like so:
ALTER TABLE my_table CHANGE data data JSON CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '(DC2Type:json)';
Removing
CHARACTER SET utf8mb4
gives a correct statement.How to reproduce
Entity:
Expected behaviour
Correct alter statement.
The text was updated successfully, but these errors were encountered: