Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
V
vitamui-pr-pastis
Manage
Activity
Members
Labels
Code
Merge requests
1
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Operate
Environments
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
dad
vitamui-pr-pastis
Commits
f63034a6
Commit
f63034a6
authored
4 years ago
by
Mounir Nayab
Browse files
Options
Downloads
Patches
Plain Diff
[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
Branches containing commit
No related tags found
1 merge request
!1
Feature/design/1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tools/docker/mongo/database_scripts/1.0.0/FENIX-58_init_user_sitecode_ref.js
+15
-0
15 additions, 0 deletions
...database_scripts/1.0.0/FENIX-58_init_user_sitecode_ref.js
with
15 additions
and
0 deletions
tools/docker/mongo/database_scripts/1.0.0/FENIX-58_init_user_sitecode_ref.js
0 → 100644
+
15
−
0
View file @
f63034a6
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
"
);
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment