[umbrella]: Add script to add standalone field with default value true.

This commit is contained in:
Konstantinos Triantafyllou 2024-06-03 11:47:25 +03:00
parent 4f1d1b89f4
commit 0d50ce9dd2
1 changed files with 6 additions and 0 deletions

6
scripts/2024-05-27.js Normal file
View File

@ -0,0 +1,6 @@
function addStandaloneWithDefaultValue() {
/* Set standalone by default true */
db.stakeholder.updateMany({standalone: {$exists: false}}, {$set: {standalone: true}});
}
addStandaloneWithDefaultValue();