Questions tagged [auto-increment]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1 vote
1 answer
60 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 ...
user avatar
0 votes
1 answer
190 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?
user avatar
  • 5
0 votes
1 answer
128 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 ...
user avatar
0 votes
1 answer
325 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\...
user avatar
1 vote
2 answers
2k 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" ...
user avatar
1 vote
0 answers
29 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,...
user avatar
  • 964
1 vote
0 answers
55 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. ...
user avatar
  • 1,967