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" padding="11" unsigned="false" nullable="false" identity="true" comment="Entity ID"/>
No AUTO_INCREMENT in db is found. What am I doing wrong/missing?
Magento 2.3.4, MySQL 5.7
UPD. It seems like db_schema is cached somewhere. Nothing I do affects it, nor changing padding, nor anything else.
UPD2. Adding a column works. Moreso, even commenting old entity_id column and adding a dummy column with auto_increment works.
<constraint xsi:type="primary" referenceId="PRIMARY"> <column name="entity_id"/> </constraint>