MigrationBundle/Migrations/Version20170307181737.php
protected function updateMedias(Database $db)
    {
        $this->write(' + Updating media documents');
        $this->write('  + Removing alts');

        $this->checkExecute($db->execute('
            db.media.update({}, {$unset: {alts: ""}}, {multi: true});
        '));
    }
protected function updateMedias(Database $db)
    {
        $this->write(' + Updating media documents');
        $this->write('  + Removing alts');

        $this->checkExecute($db->execute('
            db.media.update({}, {$unset: {alts: ""}}, {multi: true});
        '));
    }
protected function updateMedias ( Database $ db ) { $ this -> write ( ' + Updating media documents' ) ; $ this -> write ( '  + Removing alts' ) ; $ this -> checkExecute ( $ db -> execute ( '
            db.media.update({}, {$unset: {alts: ""}}, {multi: true});
        ' ) ) ; }
Update media documents

@param Database $db
Update media documents