Skip to content


DBAL-404: Support of index length for text fields #1597

doctrinebot opened this Issue · 0 comments

2 participants


Jira issue originally created by user maxlun86:

For table with text field description with index on it generated query is:

CREATE TABLE t (id INT UNSIGNED AUTOINCREMENT NOT NULL, description LONGTEXT DEFAULT NULL, number INT DEFAULT NULL, INDEX index2 (description), INDEX index3 (description, number), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE utf8_unicodeci ENGINE = InnoDB

This query lead to error, because for index on text field absented key length.

@beberlei beberlei was assigned by doctrinebot
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.