mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-11-03 18:52:15 +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{
|
||||
"d_id": 1,
|
||||
},
|
||||
Options: options.Index().SetUnique(true),
|
||||
})
|
||||
|
||||
return err
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user