I want to change the field type of catalogrule_product table from varchar to text.
<column xsi:type="varchar" name="action_operator" nullable="true" length="10" default="to_fixed"
comment="Action Operator"/>
For this first I overrided db_schema.xml as below:
<?xml version="1.0"?>
<schema xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="urn:magento:framework:Setup/Declaration/Schema/etc/schema.xsd">
<table name="catalogrule_product" resource="default" >
<column xsi:type="text" name="action_operator" nullable="true" default="to_fixed"
comment="Action Operator"/>
</table>
</schema>
But when I'm doing the setup:upgrade I'm getting the below error:
Invalid Document
Element 'column', attribute 'length': The attribute 'length' is not allowed.
Can anyone help me to resolve this issue?