Skip to content

eventOneHQ/migrate-mongoose-esm

 
 

Repository files navigation

@eventonehq/migrate-mongoose

A migration framework for Mongoose

npm version npm downloads Node.js License: MIT

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.


Installation

npm install @eventonehq/migrate-mongoose mongoose

Quick Start

# 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/mydb

For full documentation, visit the docs site.


How to Contribute

Contributions are welcome. To get started:

  1. Open an issue to discuss the proposed change before writing code.
  2. Fork the repository and create a feature branch.
  3. Write tests for your changes — all tests must pass (npm test).
  4. Submit a pull request against the main branch. It will be reviewed and iterated on together.
  5. Once approved, it will be merged and the package version will be bumped.

Acknowledgements


License

MIT — see LICENSE for details.

About

A migration framework for Mongoose

Resources

License

Stars

Watchers

Forks

Contributors

Languages

  • JavaScript 99.9%
  • Shell 0.1%