public function getNumberOfExecutedMigrations()
{
$this->connect();
$this->createMigrationTable();
$result = $this->connection->fetchColumn("SELECT COUNT(" . $this->migrationsColumnName . ") FROM " . $this->migrationsTableName);
return $result !== false ? $result : 0;
}