Skip to content
Snippets Groups Projects
Commit f63034a6 authored by Mounir Nayab's avatar Mounir Nayab
Browse files

[FENIX-58] add a script to init user's siteCode with an empty string if the property does not exist

parent cb59778f
No related branches found
No related tags found
1 merge request!1Feature/design/1
db = db.getSiblingDB('iam')
print("START FENIX-58_init_user_sitecode_ref.js");
// Update all users without siteCode : add an empty siteCode
db.users.updateMany(
{"siteCode": {$exists: false}},
{
$set: {
"siteCode": ""
}
}
);
print("END FENIX-58_init_user_sitecode_ref.js");
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment