private function integratePagSeguroAndOrdersGrid($setup)
    {
        //add transaction code column
        $setup->getConnection()
            ->addColumn(
                $setup->getTable('sales_order_grid'),
                'transaction_code',
                [
                    'type' => Table::TYPE_TEXT,
                    'length' => 80,
                    'comment' => 'PagSeguro Transaction Code'
                ]
            );
        
        //add environment column
        $setup->getConnection()
            ->addColumn(
                $setup->getTable('sales_order_grid'),
                'environment',
                [
                    'type' => Table::TYPE_TEXT,
                    'length' => 40,
                    'comment' => 'PagSeguro Environment'
                ]
            );
    }
private function integratePagSeguroAndOrdersGrid($setup)
    {
        //add transaction code column
        $setup->getConnection()
            ->addColumn(
                $setup->getTable('sales_order_grid'),
                'transaction_code',
                [
                    'type' => Table::TYPE_TEXT,
                    'length' => 80,
                    'comment' => 'PagSeguro Transaction Code'
                ]
            );
        
        //add environment column
        $setup->getConnection()
            ->addColumn(
                $setup->getTable('sales_order_grid'),
                'environment',
                [
                    'type' => Table::TYPE_TEXT,
                    'length' => 40,
                    'comment' => 'PagSeguro Environment'
                ]
            );
    }
private function integratePagSeguroAndOrdersGrid ( $ setup ) { //add transaction code column $ setup -> getConnection ( ) -> addColumn ( $ setup -> getTable ( 'sales_order_grid' ) , 'transaction_code' , [ 'type' => Table :: TYPE_TEXT , 'length' => 80 , 'comment' => 'PagSeguro Transaction Code' ] ) ; //add environment column $ setup -> getConnection ( ) -> addColumn ( $ setup -> getTable ( 'sales_order_grid' ) , 'environment' , [ 'type' => Table :: TYPE_TEXT , 'length' => 40 , 'comment' => 'PagSeguro Environment' ] ) ; }
Add PagSeguro columns to magento sales_order_grid table

@param Magento\Framework\Setup\SchemaSetupInterface $setup
@return void
Add PagSeguro columns to magento sales_order_grid table