mirror of
https://github.com/doctrine/orm.git
synced 2026-03-23 22:42:18 +01:00
The command doctrine:schema:update doesn't see what field already MEDIUMTEXT #5769
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 @dmytroboiko on GitHub (Nov 13, 2017).
Originally assigned to: @dmytroboiko on GitHub.
I have a field which I want to be mysql mediumtext
Example.orm.yaml
Everything is fine, field created as 'mediumtext'
but whenever I run
php bin/console doctrine:schema:update --dump-sql
I get
ALTER TABLE table CHANGE description description MEDIUMTEXT NOT NULL;
though
descriptionis MEDIUMTEXT already.@coudenysj commented on GitHub (Nov 17, 2017):
Could you paste the "CREATE TABLE" sql (from without your database)?
@dmytroboiko commented on GitHub (Nov 17, 2017):
@coudenysj
@lcobucci commented on GitHub (Nov 27, 2017):
@dmytroboiko have you tried to use the type that the documentation recommends (text)? http://docs.doctrine-project.org/projects/doctrine-dbal/en/latest/reference/types.html#character-string-types
@dmytroboiko commented on GitHub (Nov 27, 2017):
@lcobucci, Yes I tried. But if I setted type:
textand length:1.5E6. Commandphp bin/console doctrine:schema:update --dump-sqlcreate fielddescriptionwith type TEXT independently of the length settings@lcobucci commented on GitHub (Nov 27, 2017):
@dmytroboiko this sounds like a DBAL issue then, can you please send us a PR over there with a failing test case?
@lcobucci commented on GitHub (Nov 27, 2017):
I'll also close this issue since it doesn't seem to be related to the ORM, don't forget to add a link to it on the DBAL PR.