mirror of
https://github.com/doctrine/orm.git
synced 2026-03-23 22:42:18 +01:00
schema update does not change text type if length attribute is altered (MySQL) #5121
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Triodes on GitHub (May 10, 2016).
consider the following annotation
\Column(type="text", length=200, nullable=true)A column will be created with type tinytext
Now when I remove the length attribute I would expect the type to change to largetext (or text/mediumtext if the length is increased to fit those instead of omitted) when running schema:update. This does not happen however.
Changing it manually is not a big deal, but it is easy to forget when deploying.
P.S. the length attribute docs state that it is only applicable with the string type. But that is obviously not the case.