setAllowMigrations
정의
구문
명령은 다음과 같은 구문을 가집니다:
db.adminCommand( { setAllowMigrations: "<db>.<collection>", allowMigrations: <true|false> } )
명령 필드
이 명령은 다음 매개 변수를 사용합니다.
필드 | 유형 | 설명 |
---|---|---|
string | 수정할 컬렉션입니다. | |
boolean |
행동
예제
이 작업은 store.inventory
collection에서의 마이그레이션을 방지합니다.
db.adminCommand( { setAllowMigrations: "store.inventory", allowMigrations: false } )