Setup/Schema/Shared.php
public function createAbandonedCartTable($installer, $tableName)
    {
        $abandonedCartTable = $installer->getConnection()->newTable($installer->getTable($tableName));
        $abandonedCartTable = $this->addColumnForAbandonedCartTable($abandonedCartTable);
        $abandonedCartTable = $this->addIndexKeyForAbandonedCarts($installer, $abandonedCartTable);
        $abandonedCartTable->setComment('Abandoned Carts Table');
        $installer->getConnection()->createTable($abandonedCartTable);
    }
public function createAbandonedCartTable($installer, $tableName)
    {
        $abandonedCartTable = $installer->getConnection()->newTable($installer->getTable($tableName));
        $abandonedCartTable = $this->addColumnForAbandonedCartTable($abandonedCartTable);
        $abandonedCartTable = $this->addIndexKeyForAbandonedCarts($installer, $abandonedCartTable);
        $abandonedCartTable->setComment('Abandoned Carts Table');
        $installer->getConnection()->createTable($abandonedCartTable);
    }
public function createAbandonedCartTable ( $ installer , $ tableName ) { $ abandonedCartTable = $ installer -> getConnection ( ) -> newTable ( $ installer -> getTable ( $ tableName ) ) ; $ abandonedCartTable = $ this -> addColumnForAbandonedCartTable ( $ abandonedCartTable ) ; $ abandonedCartTable = $ this -> addIndexKeyForAbandonedCarts ( $ installer , $ abandonedCartTable ) ; $ abandonedCartTable -> setComment ( 'Abandoned Carts Table' ) ; $ installer -> getConnection ( ) -> createTable ( $ abandonedCartTable ) ; }
Create abandoned cart table

@param SchemaSetupInterface $installer
@param string $tableName
Create abandoned cart table