fix: update mongo version collection have unique index.

pull/2417/head
Monet Lee 1 year ago
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…
Cancel
Save