public function drop(array $metadata)
    {
        $visitor = new DropSchemaSqlCollector($this->platform);

        $schema = $this->getSchemaFromMetadata($metadata);

        $fullSchema = $this->schemaManager->createSchema();

        foreach ($fullSchema->getTables() as $table) {
            if ($schema->hasTable($table->getName())) {
                $visitor->acceptTable($table);
            }
        }

        $statements = $visitor->getQueries();

        $this->build($statements);

        return $statements;
    }
public function drop(array $metadata)
    {
        $visitor = new DropSchemaSqlCollector($this->platform);

        $schema = $this->getSchemaFromMetadata($metadata);

        $fullSchema = $this->schemaManager->createSchema();

        foreach ($fullSchema->getTables() as $table) {
            if ($schema->hasTable($table->getName())) {
                $visitor->acceptTable($table);
            }
        }

        $statements = $visitor->getQueries();

        $this->build($statements);

        return $statements;
    }
public function drop ( array $ metadata ) { $ visitor = new DropSchemaSqlCollector ( $ this -> platform ) ; $ schema = $ this -> getSchemaFromMetadata ( $ metadata ) ; $ fullSchema = $ this -> schemaManager -> createSchema ( ) ; foreach ( $ fullSchema -> getTables ( ) as $ table ) { if ( $ schema -> hasTable ( $ table -> getName ( ) ) ) { $ visitor -> acceptTable ( $ table ) ; } } $ statements = $ visitor -> getQueries ( ) ; $ this -> build ( $ statements ) ; return $ statements ; }
Drop all tables.

@param array $metadata
@return array
Drop all tables .