Salesattribute

Install Magento 2 sales order attributes programmatically.

Use the snippet in the Magento 2 module creator.

Files

etc/db_schema.xml

<?xml version="1.0" ?>
<schema xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Setup/Declaration/Schema/etc/schema.xsd">
	<table name="quote">
		<column name="test" nullable="true" xsi:type="None" comment="Test" length="null"/>
	</table>
</schema>