{"categories":[{"label":"Database","url":"https://skillfed.io/packages/category/database/3"}],"enrichment":{"capability":"migra compares PostgreSQL database schemas and generates the SQL statements needed to transform one schema into another, automating schema migrations from the command line or within Python scripts.","skillfed_tags":["schema-migration","postgres-tools","sql-generation"],"use_cases":["Generate migration scripts automatically when your application schema definition changes, reducing manual SQL writing.","Synchronize a development database schema with your application's ORM or schema models without hand-coding migrations.","Compare production and staging database schemas to identify drift and generate corrective SQL statements.","Test schema changes in a controlled way by generating and reviewing the exact SQL before applying it.","Audit schema differences between database versions or environments for compliance or debugging purposes."],"what_it_does":"migra is a schema diff tool for PostgreSQL that automatically detects differences between two database schemas and generates the SQL statements needed to transform one into the other. Instead of writing migrations by hand, you point migra at a source and target schema, and it figures out the alter statements required\u2014column additions, constraint changes, and other modifications across most PostgreSQL features. It works both as a command-line tool and as a library you can call from Python scripts.\n\nThe tool is designed to make schema migrations less tedious and error-prone by automating the comparison and SQL generation. You can use it to synchronize a development database from application models, make schema changes testable, or simply understand what structural changes exist between two database versions. It requires PostgreSQL >= 9 and Python >= 3.7, with minimal dependencies (sqlbag, six, schemainspect).","worth_installing":"Yes, if you work regularly with PostgreSQL schema migrations and want to reduce manual SQL writing. The low install friction and permissive license make it easy to try. However, the aging maintenance status (latest release 2022, though recent commits exist) means you should verify compatibility with your PostgreSQL version and be prepared to contribute fixes if needed. No known vulnerabilities."},"id":"migra","links":{"html":"https://skillfed.io/packages/migra","md":"https://skillfed.io/packages/migra.md","pypi":"https://pypi.org/project/migra/"},"maintenance":{"status":"aging"},"meta":{"latest_release":"2022-09-18","license_spdx":null,"license_treatment":"permissive","name":"migra","python_support":"supports_current","summary":"Like `diff` but for PostgreSQL schemas"},"popularity":{"monthly_downloads":246944,"position":8703,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"3.0.1663481299"}
