startSetup(); $table = $installer->getConnection() ->newTable($installer->getTable('captcha/log')) ->addColumn('type', Varien_Db_Ddl_Table::TYPE_TEXT, 32, array( 'nullable' => false, 'primary' => true, ), 'Type') ->addColumn('value', Varien_Db_Ddl_Table::TYPE_TEXT, 32, array( 'nullable' => false, 'unsigned' => true, 'primary' => true, ), 'Value') ->addColumn('count', Varien_Db_Ddl_Table::TYPE_INTEGER, null, array( 'unsigned' => true, 'nullable' => false, 'default' => '0', ), 'Count') ->addColumn('updated_at', Varien_Db_Ddl_Table::TYPE_TIMESTAMP, null, array(), 'Update Time') ->setComment('Count Login Attempts'); $installer->getConnection()->createTable($table); $installer->endSetup();