mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-11-05 03:42:08 +08:00
fix: update mongo version collection have unique index.
This commit is contained in:
parent
81c6c0acc3
commit
3424fc07ad
@ -34,7 +34,9 @@ func (l *VersionLogMgo) initIndex(ctx context.Context) error {
|
|||||||
Keys: bson.M{
|
Keys: bson.M{
|
||||||
"d_id": 1,
|
"d_id": 1,
|
||||||
},
|
},
|
||||||
|
Options: options.Index().SetUnique(true),
|
||||||
})
|
})
|
||||||
|
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user