Questions tagged [auto-increment]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
1answer
82 views

How to set 2 auto increment id in table[Magento 2]

is there any way to create 2 auto increment id in same table?When im trying to create using db_schema, error showing that only primary key id can get this auto increment.is there any other ways?
0
votes
1answer
255 views

Add row number in admin custom table Magento 2

I've made a new module. Here, I've override the AbstractFieldArray class. <?php namespace myVendor\myModule\Block\System\Form\Field; use Magento\Config\Block\System\Config\Form\Field\...
0
votes
1answer
36 views

Dynamic row autoincrement column Magento 2

I have a new module created by me. Here, I've followed this tutorial: https://devdocs.magento.com/guides/v2.4/ext-best-practices/tutorials/dynamic-row-system-config.html In this table, I want a column ...
0
votes
2answers
1k views

Auto increment in db_schema.xml

In M2 dev docs there is this regarding auto increment: identity Indicates whether a column is auto incremented. Here's excerpt from my db_schema.xml: <column xsi:type="int" name="entity_id" ...
1
vote
0answers
23 views

Magento 2 Custom Table Auto Increament Column value disorder

In my custom module, I have a database table with auto increment col. The columns values initially work fine but when I delete any record the value increased like this order 1,2,3,4,5,6,10,11,110,115,...
1
vote
0answers
45 views

Magento 2 add Item SR NO. in cart!

I have added new column of SR NO in cart table. But <tbody> tag generating dynamically. I want to add sr no for each row. but When I am trying it is not working and showing only 1 in each row. ...