concrete/src/Console/Command/CompareSchemaCommand.php
protected function filterQueries($queries)
    {
        $app = Application::getFacadeApplication();
        $config = $app->make('config');

        $textIndexDrops = [];
        foreach ($config->get('database.text_indexes') as $indexTable => $indexDefinition) {
            foreach (array_keys($indexDefinition) as $indexName) {
                $textIndexDrops[] = strtolower("DROP INDEX {$indexName} ON {$indexTable}");
            }
        }

        $returnQueries = [];
        foreach ($queries as $query) {
            $queryLowerCase = strtolower($query);
            if (!in_array($queryLowerCase, $textIndexDrops, true)) {
                $returnQueries[] = $query;
            }
        }

        return $returnQueries;
    }
protected function filterQueries($queries)
    {
        $app = Application::getFacadeApplication();
        $config = $app->make('config');

        $textIndexDrops = [];
        foreach ($config->get('database.text_indexes') as $indexTable => $indexDefinition) {
            foreach (array_keys($indexDefinition) as $indexName) {
                $textIndexDrops[] = strtolower("DROP INDEX {$indexName} ON {$indexTable}");
            }
        }

        $returnQueries = [];
        foreach ($queries as $query) {
            $queryLowerCase = strtolower($query);
            if (!in_array($queryLowerCase, $textIndexDrops, true)) {
                $returnQueries[] = $query;
            }
        }

        return $returnQueries;
    }
protected function filterQueries ( $ queries ) { $ app = Application :: getFacadeApplication ( ) ; $ config = $ app -> make ( 'config' ) ; $ textIndexDrops = [ ] ; foreach ( $ config -> get ( 'database.text_indexes' ) as $ indexTable => $ indexDefinition ) { foreach ( array_keys ( $ indexDefinition ) as $ indexName ) { $ textIndexDrops [ ] = strtolower ( "DROP INDEX {$indexName} ON {$indexTable}" ) ; } } $ returnQueries = [ ] ; foreach ( $ queries as $ query ) { $ queryLowerCase = strtolower ( $ query ) ; if ( ! in_array ( $ queryLowerCase , $ textIndexDrops , true ) ) { $ returnQueries [ ] = $ query ; } } return $ returnQueries ; }
Filter out all the queries that are platform specific that
Doctrine doens't give us a good way to deal with. This is mostly
index lengths that are set in installation that Doctrine doesn't
support.

@param string[] $queries

@return string[]
Filter out all the queries that are platform specific that Doctrine doens t give us a good way to deal with . This is mostly index lengths that are set in installation that Doctrine doesn t support .