Posted almost 4 years ago. Visible to the public.

Adding A Column to a Flat Table

Handy to add attributes to sales_flat_order:

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

Owner of this card:

Avatar
Mike Whitby
Last edit:
almost 4 years ago
by Mike Whitby
Posted by Mike Whitby to Magento
This website uses cookies to improve usability and analyze traffic.
Accept or learn more