Migrations\Shell\Task\MigrationDiffTask::getCurrentSchema PHP Метод

getCurrentSchema() защищенный Метод

Reflects the current database schema.
protected getCurrentSchema ( ) : array
Результат array Full database schema : the key is the name of the table and the value is an instance of \Cake\Database\Schema\Table.
    protected function getCurrentSchema()
    {
        $schema = [];
        if (empty($this->tables)) {
            return $schema;
        }
        $collection = ConnectionManager::get($this->connection)->schemaCollection();
        foreach ($this->tables as $table) {
            if (preg_match("/^.*phinxlog\$/", $table) === 1) {
                continue;
            }
            $schema[$table] = $collection->describe($table);
        }
        return $schema;
    }