src/Mongrate/Service/MigrationService.php
private function setMigrationApplied(Name $name, $isApplied)
    {
        $collection = $this->getAppliedCollection();
        $criteria = ['className' => (string) $name];
        $newObj = ['$set' => ['className' => (string) $name, 'isApplied' => $isApplied]];
        $collection->upsert($criteria, $newObj);
    }
private function setMigrationApplied(Name $name, $isApplied)
    {
        $collection = $this->getAppliedCollection();
        $criteria = ['className' => (string) $name];
        $newObj = ['$set' => ['className' => (string) $name, 'isApplied' => $isApplied]];
        $collection->upsert($criteria, $newObj);
    }
private function setMigrationApplied ( Name $ name , $ isApplied ) { $ collection = $ this -> getAppliedCollection ( ) ; $ criteria = [ 'className' => ( string ) $ name ] ; $ newObj = [ '$set' => [ 'className' => ( string ) $ name , 'isApplied' => $ isApplied ] ] ; $ collection -> upsert ( $ criteria , $ newObj ) ; }
Update the database to record whether or not the migration has been applied.

@param boolean $isApplied
Update the database to record whether or not the migration has been applied .