golang-migrate / migrate

Database migrations. CLI and Golang library.
Other
15.14k stars 1.39k forks source link

How migrate mongodb for adminCommand #1095

Open okhowang opened 4 months ago

okhowang commented 4 months ago

Is your feature request related to a problem? Please describe. Migration for MongoDB use db.runCommand now. but some commands can't be run by db.runCommand for example, sh.enableSharding(database)

Describe the solution you'd like May be, we can support .js file as migration? And it can be reuse in mongo docker image with /docker-entrypoint-initdb.d/*.js

Describe alternatives you've considered No

Additional context