private function createPagSeguroOrdersTable($setup) 
    {
        // Get pagseguro orders table
        $tableName = $setup->getTable(self::PAGSEGURO_ORDERS);
        // Check if the table already exists
        if ($setup->getConnection()->isTableExists($tableName) != true) {
            // Create pagseguro orders table
            $table = $setup->getConnection()
                ->newTable($tableName)
                ->addColumn(
                    'entity_id',
                    Table::TYPE_INTEGER,
                    11,
                    [
                        'identity' => true,
                        'unsigned' => true,
                        'nullable' => false,
                        'primary' => true
                    ],
                    'Entity ID'
                )
                ->addColumn(
                    'order_id',
                    TABLE::TYPE_INTEGER,
                    11,
                    [],
                    'Order id'
                )
                ->addColumn(
                    'transaction_code',
                    Table::TYPE_TEXT,
                    80,
                    [],
                    'Transaction code'
                )
                ->addColumn(
                    'sent',
                    Table::TYPE_INTEGER,
                    11,
                    ['nullable' => false, 'default' => 0],
                    'Sent Emails'
                )
                ->addColumn(
                    'environment',
                    Table::TYPE_TEXT,
                    40,
                    [],
                    'Environment'
                )
                ->addColumn(
                    'created_at',
                    Table::TYPE_TIMESTAMP,
                    null,
                    ['nullable' => false, 'default' => Table::TIMESTAMP_INIT],
                    'Created At'
                )->addColumn(
                    'updated_at',
                    Table::TYPE_TIMESTAMP,
                    null,
                    ['nullable' => false, 'default' => Table::TIMESTAMP_INIT_UPDATE],
                    'Updated At'
                )
                ->setComment('PagSeguro Orders Table')
                ->setOption('type', 'InnoDB')
                ->setOption('charset', 'utf8');
            $setup->getConnection()->createTable($table);
        }
    }
private function createPagSeguroOrdersTable($setup) 
    {
        // Get pagseguro orders table
        $tableName = $setup->getTable(self::PAGSEGURO_ORDERS);
        // Check if the table already exists
        if ($setup->getConnection()->isTableExists($tableName) != true) {
            // Create pagseguro orders table
            $table = $setup->getConnection()
                ->newTable($tableName)
                ->addColumn(
                    'entity_id',
                    Table::TYPE_INTEGER,
                    11,
                    [
                        'identity' => true,
                        'unsigned' => true,
                        'nullable' => false,
                        'primary' => true
                    ],
                    'Entity ID'
                )
                ->addColumn(
                    'order_id',
                    TABLE::TYPE_INTEGER,
                    11,
                    [],
                    'Order id'
                )
                ->addColumn(
                    'transaction_code',
                    Table::TYPE_TEXT,
                    80,
                    [],
                    'Transaction code'
                )
                ->addColumn(
                    'sent',
                    Table::TYPE_INTEGER,
                    11,
                    ['nullable' => false, 'default' => 0],
                    'Sent Emails'
                )
                ->addColumn(
                    'environment',
                    Table::TYPE_TEXT,
                    40,
                    [],
                    'Environment'
                )
                ->addColumn(
                    'created_at',
                    Table::TYPE_TIMESTAMP,
                    null,
                    ['nullable' => false, 'default' => Table::TIMESTAMP_INIT],
                    'Created At'
                )->addColumn(
                    'updated_at',
                    Table::TYPE_TIMESTAMP,
                    null,
                    ['nullable' => false, 'default' => Table::TIMESTAMP_INIT_UPDATE],
                    'Updated At'
                )
                ->setComment('PagSeguro Orders Table')
                ->setOption('type', 'InnoDB')
                ->setOption('charset', 'utf8');
            $setup->getConnection()->createTable($table);
        }
    }
private function createPagSeguroOrdersTable ( $ setup ) { // Get pagseguro orders table $ tableName = $ setup -> getTable ( self :: PAGSEGURO_ORDERS ) ; // Check if the table already exists if ( $ setup -> getConnection ( ) -> isTableExists ( $ tableName ) != true ) { // Create pagseguro orders table $ table = $ setup -> getConnection ( ) -> newTable ( $ tableName ) -> addColumn ( 'entity_id' , Table :: TYPE_INTEGER , 11 , [ 'identity' => true , 'unsigned' => true , 'nullable' => false , 'primary' => true ] , 'Entity ID' ) -> addColumn ( 'order_id' , TABLE :: TYPE_INTEGER , 11 , [ ] , 'Order id' ) -> addColumn ( 'transaction_code' , Table :: TYPE_TEXT , 80 , [ ] , 'Transaction code' ) -> addColumn ( 'sent' , Table :: TYPE_INTEGER , 11 , [ 'nullable' => false , 'default' => 0 ] , 'Sent Emails' ) -> addColumn ( 'environment' , Table :: TYPE_TEXT , 40 , [ ] , 'Environment' ) -> addColumn ( 'created_at' , Table :: TYPE_TIMESTAMP , null , [ 'nullable' => false , 'default' => Table :: TIMESTAMP_INIT ] , 'Created At' ) -> addColumn ( 'updated_at' , Table :: TYPE_TIMESTAMP , null , [ 'nullable' => false , 'default' => Table :: TIMESTAMP_INIT_UPDATE ] , 'Updated At' ) -> setComment ( 'PagSeguro Orders Table' ) -> setOption ( 'type' , 'InnoDB' ) -> setOption ( 'charset' , 'utf8' ) ; $ setup -> getConnection ( ) -> createTable ( $ table ) ; } }
Create the pagseguro_orders table in the DB

@param Magento\Framework\Setup\SchemaSetupInterface $setup
@return void
Create the pagseguro_orders table in the DB