Skip to content

how to create custom attribute for order using data-patch in magento 2.4.6?

how can we create custom order attribute programatically using data-patch in magento 2.4.6 ? I know how to create this customer attribute for order using install schema but currently I am using magento 2.4.6 version so as per standards I wanted to create the same by using data-patch. Can you suggest how to achieve the same by using data-patch