src/DataStore/src/TableGateway/TableManagerMysql.php
public function rewriteTable($tableName, $tableConfig = null)
    {
        if ($this->hasTable($tableName)) {
            $this->deleteTable($tableName);
        }

        return $this->create($tableName, $tableConfig);
    }
public function rewriteTable($tableName, $tableConfig = null)
    {
        if ($this->hasTable($tableName)) {
            $this->deleteTable($tableName);
        }

        return $this->create($tableName, $tableConfig);
    }
public function rewriteTable ( $ tableName , $ tableConfig = null ) { if ( $ this -> hasTable ( $ tableName ) ) { $ this -> deleteTable ( $ tableName ) ; } return $ this -> create ( $ tableName , $ tableConfig ) ; }
Rewrites the table.

Rewrite == delete existing table + create the new table

@param string $tableName
@param string $tableConfig
@return mixed
Rewrites the table .