{"id":37070694,"url":"https://github.com/deniskrumko/django-migrations-diff","last_synced_at":"2026-01-14T08:15:29.631Z","repository":{"id":44861578,"uuid":"110819408","full_name":"deniskrumko/django-migrations-diff","owner":"deniskrumko","description":"Compare django migrations between snapshots","archived":false,"fork":false,"pushed_at":"2022-12-08T10:59:38.000Z","size":126,"stargazers_count":9,"open_issues_count":5,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-08-09T12:11:47.084Z","etag":null,"topics":["cli","compare-migrations","django","migrations"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/deniskrumko.png","metadata":{"files":{"readme":"README.rst","changelog":null,"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":"2017-11-15T10:29:53.000Z","updated_at":"2023-04-17T14:50:04.000Z","dependencies_parsed_at":"2023-01-25T10:46:01.413Z","dependency_job_id":null,"html_url":"https://github.com/deniskrumko/django-migrations-diff","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/deniskrumko/django-migrations-diff","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deniskrumko%2Fdjango-migrations-diff","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deniskrumko%2Fdjango-migrations-diff/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deniskrumko%2Fdjango-migrations-diff/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deniskrumko%2Fdjango-migrations-diff/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/deniskrumko","download_url":"https://codeload.github.com/deniskrumko/django-migrations-diff/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deniskrumko%2Fdjango-migrations-diff/sbom","scorecard":{"id":334108,"data":{"date":"2025-08-11","repo":{"name":"github.com/deniskrumko/django-migrations-diff","commit":"a6916d6bc4f4adbc6aefa4983a77f92df2c811e6"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2,"checks":[{"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":"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":"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":"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":"Code-Review","score":0,"reason":"Found 0/22 approved changesets -- score normalized to 0","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":"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":"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":"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":"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":"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":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: 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":"Branch-Protection","score":-1,"reason":"internal error: error during branchesHandler.setup: internal error: githubv4.Query: Resource not accessible by integration","details":null,"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 9 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"}},{"name":"Vulnerabilities","score":0,"reason":"32 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: PYSEC-2021-865 / GHSA-vv2x-vrpj-qqpq","Warn: Project is vulnerable to: PYSEC-2022-42986 / GHSA-43fp-rhv2-5gv8","Warn: Project is vulnerable to: PYSEC-2023-135 / GHSA-xqr8-7jwr-rhp7","Warn: Project is vulnerable to: GHSA-3ww4-gg4f-jr7f","Warn: Project is vulnerable to: GHSA-5cpq-8wj7-hf2v","Warn: Project is vulnerable to: GHSA-9v9h-cgj8-h64p","Warn: Project is vulnerable to: PYSEC-2021-62 / GHSA-hggm-jpg3-v476","Warn: Project is vulnerable to: PYSEC-2023-254 / GHSA-jfhm-5ghh-2f97","Warn: Project is vulnerable to: GHSA-jm77-qphf-c4w8","Warn: Project is vulnerable to: PYSEC-2021-63 / GHSA-rhm9-p9w5-fwm7","Warn: Project is vulnerable to: GHSA-v8gr-m533-ghj9","Warn: Project is vulnerable to: GHSA-w7pp-m8wf-vj6r","Warn: Project is vulnerable to: GHSA-x4qr-2fvf-3mr5","Warn: Project is vulnerable to: PYSEC-2024-60 / GHSA-jjg7-2v4v-x38h","Warn: Project is vulnerable to: GHSA-29gw-9793-fvw7","Warn: Project is vulnerable to: PYSEC-2022-12 / GHSA-pq7m-3gw7-gq5x","Warn: Project is vulnerable to: GHSA-45x7-px36-x8w8","Warn: Project is vulnerable to: PYSEC-2022-166","Warn: Project is vulnerable to: PYSEC-2021-140 / GHSA-9w8r-397f-prfh","Warn: Project is vulnerable to: PYSEC-2023-117 / GHSA-mrwq-x4v8-fh7p","Warn: Project is vulnerable to: PYSEC-2021-141 / GHSA-pq64-v7f5-gqh8","Warn: Project is vulnerable to: GHSA-9hjg-9r4m-mvj7","Warn: Project is vulnerable to: GHSA-9wx4-h78v-vm56","Warn: Project is vulnerable to: PYSEC-2023-74 / GHSA-j8r2-6x86-q33q","Warn: Project is vulnerable to: GHSA-g7vv-2v7x-gj9p","Warn: Project is vulnerable to: GHSA-34jh-p97f-mpxf","Warn: Project is vulnerable to: PYSEC-2023-212 / GHSA-g4mx-q9vg-27p4","Warn: Project is vulnerable to: GHSA-pq67-6m6q-mj2v","Warn: Project is vulnerable to: PYSEC-2021-108 / GHSA-q2q7-5pp4-w6pg","Warn: Project is vulnerable to: PYSEC-2023-192 / GHSA-v845-jxx5-vc9f","Warn: Project is vulnerable to: PYSEC-2022-43017 / GHSA-qwmp-2cf2-g9g6","Warn: Project is vulnerable to: GHSA-jfmj-5v4g-7637"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-18T04:17:35.833Z","repository_id":44861578,"created_at":"2025-08-18T04:17:35.834Z","updated_at":"2025-08-18T04:17:35.834Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28413726,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T05:26:33.345Z","status":"ssl_error","status_checked_at":"2026-01-14T05:21:57.251Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["cli","compare-migrations","django","migrations"],"created_at":"2026-01-14T08:15:29.139Z","updated_at":"2026-01-14T08:15:29.617Z","avatar_url":"https://github.com/deniskrumko.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"django-migrations-diff\n======================\n\n.. image:: https://img.shields.io/pypi/v/django-migrations-diff.svg\n    :target: https://pypi.org/project/django-migrations-diff/\n    :alt: PyPI version\n\n.. image:: https://img.shields.io/pypi/pyversions/django-migrations-diff.svg\n    :target: https://pypi.org/project/django-migrations-diff/\n    :alt: Python versions\n\n.. image:: https://img.shields.io/pypi/l/django-migrations-diff.svg\n    :target: https://raw.githubusercontent.com/deniskrumko/django-migrations-diff/master/LICENSE\n    :alt: License\n\n\nCLI to compare Django migrations between two snapshots.\n\nThis may be useful when you need to compare migrations in the same app between different branches.\n\nInstallation\n^^^^^^^^^^^^\n.. code-block:: bash\n\n    pip install django-migrations-diff\n\nRequirements\n^^^^^^^^^^^^\n\n- Python 3.6 or higher\n\nHow to use\n^^^^^^^^^^\n\n.. code-block:: bash\n\n    # show help\n    mdiff help\n\n    # Create migrations snapshot\n    mdiff \u003csnapshot\u003e\n\n    # Compare two snapshots\n    mdiff \u003csnapshot_1\u003e \u003csnapshot_2\u003e\n\n    # Compare two snapshots (get number of diffent migrations)\n    mdiff \u003csnapshot_1\u003e \u003csnapshot_2\u003e --number\n\n    # List of all snapshots\n    mdiff list\n\n    # Remove all or specific snapshots\n    mdiff rm all\n    mdiff rm \u003csnapshot_1\u003e \u003csnapshot_2\u003e\n\n    # Get current version\n    mdiff -v\n\nExample\n^^^^^^^\n\nFor example, you need to compare \"master\" and \"develop\" branches.\n\n.. code-block:: bash\n\n  git checkout master # go to \"master\" branch\n\n  mdiff master # create \"master\" snapshot\n\n  git checkout develop # go to \"develop\" branch\n\n  mdiff develop # create \"develop\" shapshot\n\n  mdiff master develop # compare two snapshots\n\n\nOutput will be like:\n\n.. code-block:: bash\n\n  ┌─────────────┬───────────────────┬───────────────────┐\n  │ APPLICATION │ MASTER            │ DEVELOP           │\n  ├─────────────┼───────────────────┼───────────────────┤\n  │ app.authors │ 0004_migration.py │ ---               │\n  │             │ ---               │ 0005_migration.py │\n  ├─────────────┼───────────────────┼───────────────────┤\n  │ app.users   │ 0003_migration.py │ 0003_migration.py │\n  └─────────────┴───────────────────┴───────────────────┘\n   Stats for snapshot DEVELOP: +1 -1 *1\n\nExplanation:\n\n1. Snapshot MASTER has 0004_migration.py but DEVELOP misses it\n2. Snapshot DEVELOP has 0005_migration.py but MASTER misses it\n3. Both MASTER and DEVELOP have 0003_migration.py migration, but it differs inside\n4. Stats show that DEVELOP snapshot has 1 new, 1 missing and 1 changed migration\n\nCI/CD configuration\n^^^^^^^^^^^^^^^^^^^\n\nThis package also can be used to detect new migrations in CI/CD pipelines.\nFor example, following stage in **.gitlab-ci.yml** will fail if there are new migrations in current\nbranch in comparison to master branch.\n\n.. code-block:: bash\n\n  chechcheck:\n    stage: tests\n    script:\n      - pip install django-migrations-diff==2.0.4  # PLEASE, CHECK CURRENT VERSION\n      - git merge-base origin/master HEAD | xargs git checkout\n      - mdiff master\n      - git checkout ${CI_COMMIT_REF_NAME}\n      - mdiff ${CI_COMMIT_REF_NAME}\n      - mdiff master ${CI_COMMIT_REF_NAME}\n      - (if [[ $(mdiff master ${CI_COMMIT_REF_NAME} --number) == 0 ]]; then echo \"No new migrations\"; else exit 1; fi;)\n    allow_failure: true\n\n**NOTE**: This is not full stage descriptions, this is only example.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdeniskrumko%2Fdjango-migrations-diff","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdeniskrumko%2Fdjango-migrations-diff","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdeniskrumko%2Fdjango-migrations-diff/lists"}