startSetup(); /** * Create table 'googlecheckout/notification' */ $table = $installer->getConnection() ->newTable($installer->getTable('googlecheckout/notification')) ->addColumn('serial_number', Varien_Db_Ddl_Table::TYPE_TEXT, 64, array( 'nullable' => false, 'primary' => true, ), 'Serial Number') ->addColumn('started_at', Varien_Db_Ddl_Table::TYPE_TIMESTAMP, null, array( ), 'Started At') ->addColumn('status', Varien_Db_Ddl_Table::TYPE_SMALLINT, null, array( 'unsigned' => true, 'nullable' => false, 'default' => '0', ), 'Status') ->setComment('Google Checkout Notification Table'); $installer->getConnection()->createTable($table); /** * Add 'disable_googlecheckout' attribute to the 'eav/attribute' table */ $installer->addAttribute(Mage_Catalog_Model_Product::ENTITY, 'enable_googlecheckout', array( 'group' => 'Prices', 'type' => 'int', 'backend' => '', 'frontend' => '', 'label' => 'Is Product Available for Purchase with Google Checkout', 'input' => 'select', 'class' => '', 'source' => 'eav/entity_attribute_source_boolean', 'global' => Mage_Catalog_Model_Resource_Eav_Attribute::SCOPE_GLOBAL, 'visible' => true, 'required' => false, 'user_defined' => false, 'default' => '1', 'searchable' => false, 'filterable' => false, 'comparable' => false, 'visible_on_front' => false, 'unique' => false, 'apply_to' => '', 'is_configurable' => false )); /** * Prepare database after tables setup */ $installer->endSetup();