src/Zf2EventStoreAdapter.php
public function dropSchemaFor(StreamName $streamName, $returnSql = false)
    {
        $dropTable = new DropTable($this->getTable($streamName));

        if ($returnSql) {
            return $dropTable->getSqlString($this->dbAdapter->getPlatform());
        }

        $this->dbAdapter->getDriver()
            ->getConnection()
            ->execute($dropTable->getSqlString($this->dbAdapter->getPlatform()));
    }
public function dropSchemaFor(StreamName $streamName, $returnSql = false)
    {
        $dropTable = new DropTable($this->getTable($streamName));

        if ($returnSql) {
            return $dropTable->getSqlString($this->dbAdapter->getPlatform());
        }

        $this->dbAdapter->getDriver()
            ->getConnection()
            ->execute($dropTable->getSqlString($this->dbAdapter->getPlatform()));
    }
public function dropSchemaFor ( StreamName $ streamName , $ returnSql = false ) { $ dropTable = new DropTable ( $ this -> getTable ( $ streamName ) ) ; if ( $ returnSql ) { return $ dropTable -> getSqlString ( $ this -> dbAdapter -> getPlatform ( ) ) ; } $ this -> dbAdapter -> getDriver ( ) -> getConnection ( ) -> execute ( $ dropTable -> getSqlString ( $ this -> dbAdapter -> getPlatform ( ) ) ) ; }
Drops a stream table

Use this function with caution. All your events will be lost! But it can be useful in migration scenarios.

@param StreamName $streamName
@param bool $returnSql
@return string|null Whether $returnSql is true or not function will return generated sql or execute it directly
Drops a stream table