Doctrine\DBAL\Migrations\Configuration\Configuration::getNumberOfExecutedMigrations PHP 메소드

getNumberOfExecutedMigrations() 공개 메소드

Returns the total number of executed migration versions
    public function getNumberOfExecutedMigrations()
    {
        $this->connect();
        $this->createMigrationTable();
        $result = $this->connection->fetchColumn("SELECT COUNT(" . $this->migrationsColumnName . ") FROM " . $this->migrationsTableName);
        return $result !== false ? $result : 0;
    }