A migration framework for Mongoose
A database migration framework built for projects already using Mongoose. Migration state lives in MongoDB — no local state files, no fragile lock mechanisms, works anywhere your database does.
npm install @eventonehq/migrate-mongoose mongoose# Create a migration
npx migrate create add_users -d mongodb://localhost:27017/mydb
# Run pending migrations
npx migrate up -d mongodb://localhost:27017/mydb
# Check status
npx migrate list -d mongodb://localhost:27017/mydbFor full documentation, visit the docs site.
Contributions are welcome. To get started:
- Open an issue to discuss the proposed change before writing code.
- Fork the repository and create a feature branch.
- Write tests for your changes — all tests must pass (
npm test). - Submit a pull request against the
mainbranch. It will be reviewed and iterated on together. - Once approved, it will be merged and the package version will be bumped.
- migrate-mongoose — this project was forked from
migrate-mongoose.
MIT — see LICENSE for details.