@@ 513-520 (lines=8) @@ | ||
510 | * |
|
511 | * @return Version[] |
|
512 | */ |
|
513 | public function getMigratedVersions() |
|
514 | { |
|
515 | $this->createMigrationTable(); |
|
516 | ||
517 | $ret = $this->connection->fetchAll("SELECT " . $this->migrationsColumnName . " FROM " . $this->migrationsTableName); |
|
518 | ||
519 | return array_map('current', $ret); |
|
520 | } |
|
521 | ||
522 | /** |
|
523 | * Returns an array of available migration version numbers. |
|
@@ 663-670 (lines=8) @@ | ||
660 | * |
|
661 | * @return integer |
|
662 | */ |
|
663 | public function getNumberOfExecutedMigrations() |
|
664 | { |
|
665 | $this->createMigrationTable(); |
|
666 | ||
667 | $result = $this->connection->fetchColumn("SELECT COUNT(" . $this->migrationsColumnName . ") FROM " . $this->migrationsTableName); |
|
668 | ||
669 | return $result !== false ? $result : 0; |
|
670 | } |
|
671 | ||
672 | /** |
|
673 | * Returns the total number of available migration versions |