Posted almost 7 years ago. Visible to the public.

Adding A Column to a Flat Table

Handy to add attributes to sales_flat_order:

$installer->getConnection()->addColumn( $this->getTable('sales/order'), 'some_attribute', [ 'type' => Varien_Db_Ddl_Table::TYPE_INTEGER, 'length' => 1, 'comment'=> 'Comment' ] );

Owner of this card:

Mike Whitby
Last edit:
almost 7 years ago
by Mike Whitby
Posted by Mike Whitby to Magento
This website uses short-lived cookies to improve usability.
Accept or learn more