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
Element 'column', attribute 'length': The attribute 'length' is not allowed.
Description
Currently in the docs it mentions that we can use length attribute to define the text column size however Magento 2 won't allow it failing to create the column.
Create a db_schema.xml and define a table with a column like this <column name="validate_rules" xsi:type="text" length="255" comment="Validate Rules" />
Expected result
Either the column is created correctly or the documentation is updated. We need a definition on how to set the size for text columns via db_schema.xml
The text was updated successfully, but these errors were encountered:
ioweb-gr
changed the title
for text element the attribute 'length' is not allowed.
for text column in db_schema the attribute 'length' is not allowed.
Apr 12, 2020
Bug report
https://devdocs.magento.com/guides/v2.3/extension-dev-guide/declarative-schema/db-schema.html
In the docs it suggests that we can use length attribute for text column nodes however it doesn't seem to be the case as magento 2 throws an error.
Element 'column', attribute 'length': The attribute 'length' is not allowed.
Description
Currently in the docs it mentions that we can use length attribute to define the text column size however Magento 2 won't allow it failing to create the column.
e.g. from the docs
Steps to reproduce
Create a db_schema.xml and define a table with a column like this
<column name="validate_rules" xsi:type="text" length="255" comment="Validate Rules" />
Expected result
Either the column is created correctly or the documentation is updated. We need a definition on how to set the size for text columns via db_schema.xml
The text was updated successfully, but these errors were encountered: