src/Phinx/Db/Adapter/PostgresAdapter.php
public function getAllSchemas()
    {
        $sql = "SELECT schema_name
                FROM information_schema.schemata
                WHERE schema_name <> 'information_schema' AND schema_name !~ '^pg_'";
        $items = $this->fetchAll($sql);
        $schemaNames = [];
        foreach ($items as $item) {
            $schemaNames[] = $item['schema_name'];
        }

        return $schemaNames;
    }
public function getAllSchemas()
    {
        $sql = "SELECT schema_name
                FROM information_schema.schemata
                WHERE schema_name <> 'information_schema' AND schema_name !~ '^pg_'";
        $items = $this->fetchAll($sql);
        $schemaNames = [];
        foreach ($items as $item) {
            $schemaNames[] = $item['schema_name'];
        }

        return $schemaNames;
    }
public function getAllSchemas ( ) { $ sql = "SELECT schema_name
                FROM information_schema.schemata
                WHERE schema_name <> 'information_schema' AND schema_name !~ '^pg_'" ; $ items = $ this -> fetchAll ( $ sql ) ; $ schemaNames = [ ] ; foreach ( $ items as $ item ) { $ schemaNames [ ] = $ item [ 'schema_name' ] ; } return $ schemaNames ; }
Returns schemas.

@return array
Returns schemas .