Moss/Storage/Schema/Schema.php
protected function buildDrop(array $models)
    {
        $fromSchema = $this->connection->getSchemaManager()->createSchema();
        $toSchema = clone $fromSchema;

        foreach ($models as $model) {
            if (!$toSchema->hasTable($model->table())) {
                continue;
            }

            $toSchema->dropTable($model->table());
        }

        $sql = $fromSchema->getMigrateToSql($toSchema, $this->connection->getDatabasePlatform());

        $this->queries = array_merge($this->queries, $sql);
    }
protected function buildDrop(array $models)
    {
        $fromSchema = $this->connection->getSchemaManager()->createSchema();
        $toSchema = clone $fromSchema;

        foreach ($models as $model) {
            if (!$toSchema->hasTable($model->table())) {
                continue;
            }

            $toSchema->dropTable($model->table());
        }

        $sql = $fromSchema->getMigrateToSql($toSchema, $this->connection->getDatabasePlatform());

        $this->queries = array_merge($this->queries, $sql);
    }
protected function buildDrop ( array $ models ) { $ fromSchema = $ this -> connection -> getSchemaManager ( ) -> createSchema ( ) ; $ toSchema = clone $ fromSchema ; foreach ( $ models as $ model ) { if ( ! $ toSchema -> hasTable ( $ model -> table ( ) ) ) { continue ; } $ toSchema -> dropTable ( $ model -> table ( ) ) ; } $ sql = $ fromSchema -> getMigrateToSql ( $ toSchema , $ this -> connection -> getDatabasePlatform ( ) ) ; $ this -> queries = array_merge ( $ this -> queries , $ sql ) ; }
Builds drop table query

@param ModelInterface[] $models
Builds drop table query