setAllowMigrations
定義
構文
このコマンドの構文は、次のとおりです。
db.adminCommand( { setAllowMigrations: "<db>.<collection>", allowMigrations: <true|false> } )
コマンドフィールド
コマンドは、次のパラメーターを取ります。
フィールド | タイプ | 説明 |
---|---|---|
string | 変更するコレクション。 | |
boolean |
動作
例
この操作により、 store.inventory
コレクションでの移行を防止できます。
db.adminCommand( { setAllowMigrations: "store.inventory", allowMigrations: false } )