{"categories":[{"label":"Python Modules","url":"https://skillfed.io/packages/category/software-development-libraries-python-modules/20"}],"enrichment":{"capability":"Manages schema migrations for MongoDB databases by running timestamped Python migration files that define upgrade and downgrade operations against your data.","skillfed_tags":["schema-migration","mongodb","devops"],"use_cases":["Apply coordinated schema changes across a MongoDB database as your application evolves, tracking which migrations have run.","Downgrade to a previous migration state by running downgrade methods when a deployment needs to be rolled back.","Migrate to a specific point in time using --to_datetime to upgrade or downgrade only to a particular migration timestamp.","Integrate migrations into CI/CD pipelines by calling MigrationManager programmatically instead of using the CLI.","Manage multiple MongoDB instances with the same migration set by configuring different databases in config.ini or command-line arguments."],"what_it_does":"mongodb-migrations is a command-line and programmatic tool for versioning and applying schema changes to MongoDB databases. It works by reading timestamped Python migration files from a migrations folder, each containing a Migration class with upgrade and downgrade methods, and tracking which migrations have been applied via a metastore collection in MongoDB itself.\n\nThe tool is designed for teams that need to evolve their MongoDB schema over time without losing data. It supports both CLI execution (via the `mongodb-migrate` command) and direct Python API calls through MigrationManager, allowing you to integrate migrations into deployment pipelines. Configuration is handled via config.ini or command-line arguments, supporting both direct host/port/database settings and MongoDB connection URLs with optional authentication.","worth_installing":"Yes, if you need MongoDB schema versioning and can accept a dormant project. The tool is stable for its core use case (running timestamped migrations), has no known vulnerabilities, and low install friction. However, the 823-day maintenance gap and GPLv3 copyleft license mean you should verify compatibility with your MongoDB and Python versions before adopting, and confirm that GPLv3 licensing aligns with your project's legal requirements."},"id":"mongodb-migrations","links":{"html":"https://skillfed.io/packages/mongodb-migrations","md":"https://skillfed.io/packages/mongodb-migrations.md","pypi":"https://pypi.org/project/mongodb-migrations/"},"maintenance":{"status":"dormant"},"meta":{"latest_release":"2024-05-13","license_spdx":null,"license_treatment":"copyleft","name":"mongodb-migrations","python_support":"unspecified","summary":"A database migration tool for MongoDB"},"popularity":{"monthly_downloads":107848,"position":12592,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"1.3.1"}
