Phpmig\Adapter\PDO\SqlOci::hasSchema PHP Метод

hasSchema() публичный Метод

Does migration table exist in db?
public hasSchema ( ) : boolean
Результат boolean
    public function hasSchema()
    {
        $sql = 'SELECT count(*) FROM user_tables WHERE table_name = :tableName';
        $sth = $this->connection->prepare($sql);
        $sth->execute(array(':tableName' => $this->tableName));
        if ($sth->fetchColumn() == 0) {
            return false;
        }
        return true;
    }