Exemplo n.º 1
0
 protected function loadMigrated()
 {
     $db = $this->db;
     isset($this->sql[$sqlKey = 'load_migrated']) or $this->sql[$sqlKey] = strtr('SELECT * FROM `table`', ['`table`' => $db->escapeIdentifier($this->table)]);
     $this->rawMigrated = $this->db->fetchAll($this->sql[$sqlKey]);
     foreach ($this->rawMigrated as $row) {
         $this->migrated[$row['file']] = $row['run_at'];
     }
     return $this;
 }