dektrium\rbac\commands\MigrateController::getMigrationHistory PHP Method

getMigrationHistory() protected method

protected getMigrationHistory ( $limit )
    protected function getMigrationHistory($limit)
    {
        if ($this->db->schema->getTableSchema($this->migrationTable, true) === null) {
            $this->createMigrationHistoryTable();
        }
        $history = (new Query())->select(['apply_time'])->from($this->migrationTable)->orderBy(['apply_time' => SORT_DESC, 'version' => SORT_DESC])->limit($limit)->indexBy('version')->column($this->db);
        unset($history[self::BASE_MIGRATION]);
        return $history;
    }