It needs node/npm to be installed in Docker just to run a migration
There was one Rust library that handles mongodb migrations but it doesn't look maintained. Ideally, we can move migrations to a generic function that databases need to implement and we can call them in init_config. Or we can just do the migrations in new_with_settings. That would however, need custom logic to be added so I did this for now as it does the job.
Not the best code because
There was one Rust library that handles mongodb migrations but it doesn't look maintained. Ideally, we can move migrations to a generic function that databases need to implement and we can call them in
init_config
. Or we can just do the migrations innew_with_settings
. That would however, need custom logic to be added so I did this for now as it does the job.