startSetup(); $installer->getConnection()->addColumn( $installer->getTable('sales_flat_quote'), 'customer_taxvat', 'varchar(255) NULL DEFAULT NULL AFTER `customer_is_guest`' ); $installer->addAttribute('quote', 'customer_taxvat', array('type' => 'static', 'visible' => false)); // add customer_taxvat $installer->addAttribute('order', 'customer_taxvat', array('type' => 'varchar', 'visible' => false)); $installer->endSetup();