Skip to content

magento man

How to make id field auto increment in db_schema.xml in mageno 2.4?

I have a custom table created through db_schema.xml (code 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=”Magebit_Faq_Question”> <column xsi:type=”int” name=”id” unsigned=”true” nullable=”false” padding=”10″ identity=”true” comment=”id”/> <column xsi:type=”text” name=”question” nullable=”false” comment=”Question”/> <column xsi:type=”text” name=”answer” nullable=”false” comment=”Answer”/> <column xsi:type=”smallint” name=”status” nullable=”false” default=”0″… Read More »How to make id field auto increment in db_schema.xml in mageno 2.4?

Looking to switch from IBM Cloud

Hi, I have been using Softlayer for many years. Ever since IBM cloud has bought them out their support has been going downhill. A lot o… | Read the rest of https://www.webhostingtalk.com/showthread.php?t=1878834&goto=newpost