protected function getMigrationBuckets($dirPath) { $this->log()->debug("Look for buckets in {$dirPath}"); $buckets = $this->getAllMigrationBuckets($dirPath); $sth = $this->db->getAllBuckets(array(ForgeUpgrade_Db::STATUS_SUCCESS, ForgeUpgrade_Db::STATUS_SKIP)); foreach ($sth as $row) { $key = basename($row['script']); if (isset($buckets[$key])) { $this->log()->debug("Remove (already applied): {$key}"); unset($buckets[$key]); } } return $buckets; }