startSetup(); /** * Change columns */ $tables = array( $installer->getTable('giftmessage/message') => array( 'columns' => array( 'gift_message_id' => array( 'type' => Varien_Db_Ddl_Table::TYPE_INTEGER, 'identity' => true, 'unsigned' => true, 'nullable' => false, 'primary' => true, 'comment' => 'GiftMessage Id' ), 'customer_id' => array( 'type' => Varien_Db_Ddl_Table::TYPE_INTEGER, 'unsigned' => true, 'nullable' => false, 'default' => '0', 'comment' => 'Customer id' ), 'sender' => array( 'type' => Varien_Db_Ddl_Table::TYPE_TEXT, 'length' => 255, 'comment' => 'Sender' ), 'recipient' => array( 'type' => Varien_Db_Ddl_Table::TYPE_TEXT, 'length' => 255, 'comment' => 'Recipient' ), 'message' => array( 'type' => Varien_Db_Ddl_Table::TYPE_TEXT, 'comment' => 'Message' ) ), 'comment' => 'Gift Message' ), $installer->getTable('sales/quote') => array( 'columns' => array( 'gift_message_id' => array( 'type' => Varien_Db_Ddl_Table::TYPE_INTEGER, 'comment' => 'Gift Message Id' ) ) ), $installer->getTable('sales/quote_address') => array( 'columns' => array( 'gift_message_id' => array( 'type' => Varien_Db_Ddl_Table::TYPE_INTEGER, 'comment' => 'Gift Message Id' ) ) ), $installer->getTable('sales/quote_item') => array( 'columns' => array( 'gift_message_id' => array( 'type' => Varien_Db_Ddl_Table::TYPE_INTEGER, 'comment' => 'Gift Message Id' ) ) ), $installer->getTable('sales/quote_address_item') => array( 'columns' => array( 'gift_message_id' => array( 'type' => Varien_Db_Ddl_Table::TYPE_INTEGER, 'comment' => 'Gift Message Id' ) ) ), $installer->getTable('sales/order') => array( 'columns' => array( 'gift_message_id' => array( 'type' => Varien_Db_Ddl_Table::TYPE_INTEGER, 'comment' => 'Gift Message Id' ) ) ), $installer->getTable('sales/order_item') => array( 'columns' => array( 'gift_message_id' => array( 'type' => Varien_Db_Ddl_Table::TYPE_INTEGER, 'comment' => 'Gift Message Id' ), 'gift_message_available' => array( 'type' => Varien_Db_Ddl_Table::TYPE_INTEGER, 'comment' => 'Gift Message Available' ) ) ) ); $installer->getConnection()->modifyTables($tables); $installer->endSetup();