Questions tagged [auto-increment]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1 vote
2 answers
5k 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" ...
Vadim Shmyrov's user avatar
1 vote
1 answer
436 views

magento 2 table with no auto increment column catalog_product_relation

Table catalog_product_relation dosn't comes with the auto increment column. i want to create a custom id col with auto increment with the following query but not working. please help ALTER TABLE ...
Pradeep Sanku's user avatar
1 vote
1 answer
144 views

EAV_ATTRIBUTE auto increment issue

I am trying to save product attributes in my Magento2 system and there may be 100 thousands of attributes. However, I see that the value specified as auto increment in the eav_attribute table is ...
Zalmoxis's user avatar
1 vote
0 answers
85 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,...
sudo55's user avatar
  • 994
1 vote
1 answer
73 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. ...
Vinod Kumar's user avatar
  • 2,055
0 votes
2 answers
669 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?
mage's user avatar
  • 25
0 votes
1 answer
375 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 ...
Florin Aqir's user avatar
0 votes
1 answer
456 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\...
Florin Aqir's user avatar