Skip to content

Commit

Permalink
Bug#13197: drop old index name idx_user_email (#1973)
Browse files Browse the repository at this point in the history
Co-authored-by: Benaissa BENARBIA <benaissa.benarbia.ext@culture.gouv.fr>
  • Loading branch information
bbenaissa and Benaissa BENARBIA authored Aug 1, 2024
1 parent cf65354 commit 682a537
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@ print("START 60_update_cas_create_user_email_customerid_index");

db = db.getSiblingDB('iam');

//Drop old index base on user email Only
db.users.dropIndex("idx_user_email");

//Create a new index base on user email with userId for multi domain feature
db.users.createIndex(
{
"email": 1,
Expand Down

0 comments on commit 682a537

Please sign in to comment.