You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Upon closer inspection, I remembered this is by design.
This migrator looks at the db to ensure that:
there are no migrations in the db (that could potentially be missing from the file system for some reason) with the same name
If there are migrations in the file system that don't exist in the database, auto-import them to the db.
as soon as the migration is created, upload the fact that it exists (and is in a down state) to the database so you don't have to rely on devs doing that in a separate step
In essence, this is just for better user experience.
It's much better to have a safe and informative default setting (sync DB on any command and notify the user if anything is wrong or unexpected).
The connection to the database is brief and lightweight.
I'm closing this but am open to further discussion if you feel it's causing a problem
I can't create a migration without connecting to MongoDB, which is obviously unnecessary.
The text was updated successfully, but these errors were encountered: