@@ 508-515 (lines=8) @@ | ||
505 | * |
|
506 | * @return Version[] |
|
507 | */ |
|
508 | public function getMigratedVersions() |
|
509 | { |
|
510 | $this->createMigrationTable(); |
|
511 | ||
512 | $ret = $this->connection->fetchAll("SELECT " . $this->migrationsColumnName . " FROM " . $this->migrationsTableName); |
|
513 | ||
514 | return array_map('current', $ret); |
|
515 | } |
|
516 | ||
517 | /** |
|
518 | * Returns an array of available migration version numbers. |
|
@@ 658-665 (lines=8) @@ | ||
655 | * |
|
656 | * @return integer |
|
657 | */ |
|
658 | public function getNumberOfExecutedMigrations() |
|
659 | { |
|
660 | $this->createMigrationTable(); |
|
661 | ||
662 | $result = $this->connection->fetchColumn("SELECT COUNT(" . $this->migrationsColumnName . ") FROM " . $this->migrationsTableName); |
|
663 | ||
664 | return $result !== false ? $result : 0; |
|
665 | } |
|
666 | ||
667 | /** |
|
668 | * Returns the total number of available migration versions |