{"id":15068479,"url":"https://github.com/bdragon300/mongoengine-migrate","last_synced_at":"2025-08-23T06:36:59.265Z","repository":{"id":39916840,"uuid":"251675062","full_name":"bdragon300/mongoengine-migrate","owner":"bdragon300","description":"Migrations for MongoEngine inspired by Django","archived":false,"fork":false,"pushed_at":"2022-05-21T18:52:05.000Z","size":531,"stargazers_count":17,"open_issues_count":27,"forks_count":5,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-07-22T22:29:21.889Z","etag":null,"topics":["database","migrations","mongoengine","odm","orm","python"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bdragon300.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-03-31T17:10:43.000Z","updated_at":"2024-05-14T10:49:42.000Z","dependencies_parsed_at":"2022-09-04T23:00:37.615Z","dependency_job_id":null,"html_url":"https://github.com/bdragon300/mongoengine-migrate","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/bdragon300/mongoengine-migrate","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bdragon300%2Fmongoengine-migrate","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bdragon300%2Fmongoengine-migrate/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bdragon300%2Fmongoengine-migrate/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bdragon300%2Fmongoengine-migrate/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bdragon300","download_url":"https://codeload.github.com/bdragon300/mongoengine-migrate/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bdragon300%2Fmongoengine-migrate/sbom","scorecard":{"id":229196,"data":{"date":"2025-08-11","repo":{"name":"github.com/bdragon300/mongoengine-migrate","commit":"004167bc76aa05b411a373971334e44cf9211d80"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.2,"checks":[{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Code-Review","score":1,"reason":"Found 2/18 approved changesets -- score normalized to 1","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: Apache License 2.0: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 19 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-17T04:30:38.500Z","repository_id":39916840,"created_at":"2025-08-17T04:30:38.500Z","updated_at":"2025-08-17T04:30:38.500Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271745679,"owners_count":24813521,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-23T02:00:09.327Z","response_time":69,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["database","migrations","mongoengine","odm","orm","python"],"created_at":"2024-09-25T01:36:15.057Z","updated_at":"2025-08-23T06:36:59.234Z","avatar_url":"https://github.com/bdragon300.png","language":"Python","readme":"# Mongoengine-migrate\n\n![version](https://img.shields.io/pypi/v/mongoengine-migrate)\n![pyversions](https://img.shields.io/pypi/pyversions/mongoengine-migrate)\n![travis](https://img.shields.io/travis/com/bdragon300/mongoengine-migrate/master)\n![license](https://img.shields.io/github/license/bdragon300/mongoengine-migrate)\n\nFramework-agnostic schema migrations for [Mongoengine](http://mongoengine.org/) ODM. \nInspired by Django migrations system.\n\n[Read documentation](https://bdragon300.github.io/mongoengine-migrate/)\n\n**WARNING:** *this is an unstable version of software. Please backup your data before migrating*\n\n## Installation\n\n```shell script\npip3 install mongoengine-migrate\n```\n\n## Features\n\n* Documents\n  * Creating, dropping, renaming\n  * Renaming a collection\n  * Creating, dropping, renaming of fields\n  * Converting to/from a `DynamicDocument`\n  * Inheritance\n* Embedded documents\n  * Recursive creating, dropping\n  * Renaming\n  * Recursive creating, dropping, renaming of fields\n  * Converting to/from a `DynamicEmbeddedDocument`\n  * Inheritance\n* Altering fields in document and embedded documents\n  * Changing of init parameters such as `db_field`, `required`, etc.\n  * Convertion between field types (if possible)\n* Indexes\n  * Creating, dropping, renaming\n  * Handling fields constraints such as `unique` and `unique_with`\n* Automatic select a query or a python loop to perform an update depending on MongoDB version\n* Two policies of how to work with existing data which does not meet to mongoengine schema\n\nAll mongoengine field types are supported, including simple types, lists, dicts, references, \nGridFS, geo types, generic types.\n\n## Typical migration file\n\n```python\nfrom mongoengine_migrate.actions import *\n\n# Existing data processing policy\n# Possible values are: strict, relaxed\npolicy = \"strict\"\n\n# Names of migrations which the current one is dependent by\ndependencies = [\n    'previous_migration'\n]\n\n# Action chain\nactions = [\n    CreateDocument('Author', collection='author'),\n    CreateField('Author', 'name', choices=None, db_field='name', default=None, max_length=None,\n        min_length=None, null=False, primary_key=False, regex=None, required=False,\n        sparse=False, type_key='StringField', unique=False, unique_with=None),\n    RenameField('Book', 'name', new_name='caption'),\n    AlterField('Book', 'caption', required=True, db_field='caption'),\n    AlterField('Book', 'year', type_key='IntField', min_value=None, max_value=None),\n    DropField('Book', 'isbn'),\n    CreateField('Book', 'author', choices=None, db_field='author', dbref=False, default=None,\n        target_doctype='Author', null=False, primary_key=False, required=False, sparse=False,\n        type_key='ReferenceField', unique=False, unique_with=None),\n]\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbdragon300%2Fmongoengine-migrate","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbdragon300%2Fmongoengine-migrate","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbdragon300%2Fmongoengine-migrate/lists"}