Exemple #1
0
 /**
  * returs executed migrations
  * @return array
  */
 public function executedMigrations()
 {
     $migrations = $this->adapter->fetchAll($this->config->getLogTableName(), '*');
     $executedMigrations = [];
     foreach ($migrations as $migration) {
         $executedMigrations[$migration['migration_datetime'] . '|' . $migration['classname']] = $migration;
     }
     return $executedMigrations;
 }
Exemple #2
0
 /**
  * @param string $table
  * @param string $fields
  * @param array $conditions
  * @param int|null $limit
  * @param array $orders
  * @param array $groups
  * @return array
  */
 protected final function fetchAll($table, $fields = '*', array $conditions = [], $limit = null, array $orders = [], array $groups = [])
 {
     return $this->adapter->fetchAll($table, $fields, $conditions, $limit, $orders, $groups);
 }