AdobeDocs / commerce-operations.en

Content for Adobe Commerce system administration documentation on Experience League
https://experienceleague.adobe.com/docs/commerce-operations/operational-guides/home.html
MIT License
5 stars 48 forks source link

db_schema.xml file, column type is int type, padding attribute not working #111

Closed mandrills closed 10 months ago

mandrills commented 1 year ago

Description

In the db_schema.xml file, when the field is set to int type, the padding attribute set after executing the command does not working

Content checklist

Add an int type field to a table and set the padding attribute. After running the setup:upgrade command, I found that the padding attribute was ignored and had no effect.

Additional information

The file we refer to for setting attributes is the official Magento xsd file:

vendor/magento/framework/Setup/Declaration/Schema/etc/types/integers/integer.xsd

jeff-matthews commented 10 months ago

@mandrills

It doesn't appear that your issue is related to the docs. You might have better luck searching the magento/magento2 repo or magento.stackexchange.com.

You may also want to review this page in the docs about Removed width for integer types (padding).