Questions tagged [auto-increment]
The auto-increment tag has no usage guidance.
7
questions
1
vote
1
answer
324
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 ...
0
votes
1
answer
455
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
1
answer
303
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
1
answer
423
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\...
1
vote
2
answers
4k
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
0
answers
63
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
1
answer
66
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.
...