Skip to content

Commit

Permalink
Merge pull request #196 from NickPhura/PRC-1037
Browse files Browse the repository at this point in the history
PRC-1037: add database migration to remove decision description field.
  • Loading branch information
NickPhura authored Feb 25, 2019
2 parents 72a7f66 + 1cd1396 commit 35d1223
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions data_migration/removeDecisionDescription.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
// database migration script
// deletes description field from Decision collection
// run this any time after description was removed: PRC-1029-2 for api/public AND PRC-1029 for admin
// is safe to run multiple times
// NOTE: code below requires MongoDB 3.4

// steps:
// 1. open Robo 3T
// 2. paste the following in a shell
// 3. press F5 to execute

db.decisions.updateMany( {}, { $unset: { description: 1 } } );

0 comments on commit 35d1223

Please sign in to comment.