mirror of
https://github.com/doctrine/orm.git
synced 2026-03-23 22:42:18 +01:00
DDC-1737: MEDIUMTEXT field #2185
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 @doctrinebot on GitHub (Mar 29, 2012).
Originally assigned to: @guilhermeblanco on GitHub.
Jira issue originally created by user olegk:
I have a field which I want to be mysql mediumtext
/****
* @var string $description
*
* @ORM\Column(name="description", type="string", length=65536)
*/
private $description;
Everything is fine, field created as 'mediumtext'
but whenever I run
php app/console doctrine:schema:update --dump-sql
I get
ALTER TABLE table CHANGE description description MEDIUMTEXT NOT NULL;
though description is MEDIUMTEXT already.
@doctrinebot commented on GitHub (May 23, 2012):
Comment created by @guilhermeblanco:
Issue seems to be fixed already in master.
Coverage test:
4030787aa1@doctrinebot commented on GitHub (May 23, 2012):
Issue was closed with resolution "Fixed"
@fmonts commented on GitHub (Feb 16, 2020):
I still have the exact same issue with orm 2.7.1, dbal 2.10.1
show create table:
php bin/console doctrine:schema:update --dump-sql:
The same if I change length to 65536 or I remove
nullable=false.@petski commented on GitHub (Feb 28, 2020):
For anyone running into the same issue as @fmonts:
Use
type="text"instead oftype="string", i.e.:@ORM\Column(type="text", length=16777215, nullable=false)