Skip to content

Commit

Permalink
Merge pull request #107 from KPMP/KPMP-910_SetVersionNumber
Browse files Browse the repository at this point in the history
KPMP-910: Added line to ensure all packages have version 0 set
  • Loading branch information
zwright authored Apr 8, 2019
2 parents c3e1795 + ff2738f commit b6bf8c6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions scripts/2.2/dataCleanup.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,5 @@ db.packages.update({ packageType:"Sub-segment RNA-Seq" },{ $set:{ packageType:"S
//+++++ KPMP-848 remove institution name
db.packages.update({"institution": {$exists: true}},{$unset: {"institution": 1}}, {multi: true});

//+++++ KPMP-910 set version number if not already set
db.packages.update({ version: {$exists: false}}, {$set: {"version": 0}}, false, true)

0 comments on commit b6bf8c6

Please sign in to comment.