{"id":13394802,"url":"https://github.com/djrobstep/migra","last_synced_at":"2025-05-14T03:07:14.619Z","repository":{"id":37664008,"uuid":"64103823","full_name":"djrobstep/migra","owner":"djrobstep","description":"Like diff but for PostgreSQL schemas","archived":false,"fork":false,"pushed_at":"2024-05-31T18:07:03.000Z","size":417,"stargazers_count":2948,"open_issues_count":85,"forks_count":127,"subscribers_count":42,"default_branch":"master","last_synced_at":"2025-04-02T01:11:31.855Z","etag":null,"topics":["developer-experience","developer-tools","postgresql","python","schema-changes","schema-migrations"],"latest_commit_sha":null,"homepage":"https://databaseci.com/docs/migra","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"unlicense","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/djrobstep.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":"djrobstep"}},"created_at":"2016-07-25T04:33:57.000Z","updated_at":"2025-03-26T21:54:47.000Z","dependencies_parsed_at":"2023-02-19T00:30:26.629Z","dependency_job_id":"2c73c58a-3fbf-4c00-ab2d-e12348c27524","html_url":"https://github.com/djrobstep/migra","commit_stats":{"total_commits":190,"total_committers":16,"mean_commits":11.875,"dds":0.3263157894736842,"last_synced_commit":"da6671acae0b4acebdec804ae25a0c65cf8561c2"},"previous_names":[],"tags_count":24,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/djrobstep%2Fmigra","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/djrobstep%2Fmigra/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/djrobstep%2Fmigra/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/djrobstep%2Fmigra/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/djrobstep","download_url":"https://codeload.github.com/djrobstep/migra/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247962594,"owners_count":21024870,"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","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":["developer-experience","developer-tools","postgresql","python","schema-changes","schema-migrations"],"created_at":"2024-07-30T17:01:32.039Z","updated_at":"2025-04-09T02:12:56.601Z","avatar_url":"https://github.com/djrobstep.png","language":"Python","readme":"# migra: Like diff but for Postgres schemas\n\n- ## compare schemas\n- ## autogenerate migration scripts\n- ## autosync your development database from your application models\n- ## make your schema changes testable, robust, and (mostly) automatic\n\n`migra` is a schema diff tool for PostgreSQL, written in Python. Use it in your python scripts, or from the command line like this:\n\n    $ migra postgresql:///a postgresql:///b\n    alter table \"public\".\"products\" add column newcolumn text;\n\n    alter table \"public\".\"products\" add constraint \"x\" CHECK ((price \u003e (0)::numeric));\n\n`migra` magically figures out all the statements required to get from A to B.\n\nMost features of PostgreSQL are supported.\n\n**Migra supports PostgreSQL \u003e= 9 only.** Known issues exist with earlier versions. More recent versions are more comprehensively tested. Development resources are limited, and feature support rather than backwards compatibility is prioritised.\n\n## THE DOCS\n\nDocumentation is at [databaseci.com/docs/migra](https://databaseci.com/docs/migra).\n\n## Folks, schemas are good\n\nSchema migrations are without doubt the most cumbersome and annoying part of working with SQL databases. So much so that some people think that schemas themselves are bad!\n\nBut schemas are actually good. Enforcing data consistency and structure is a good thing. It’s the migration tooling that is bad, because it’s harder to use than it should be. ``migra`` is an attempt to change that, and make migrations easy, safe, and reliable instead of something to dread.\n\n## Contributing\n\nContributing is easy. [Jump into the issues](https://github.com/djrobstep/migra/issues), find a feature or fix you'd like to work on, and get involved. Or create a new issue and suggest something completely different. If you're unsure about any aspect of the process, just ask.\n\n## Credits\n\n- [djrobstep](https://github.com/djrobstep): initial development, maintenance\n- [alvarogzp](https://github.com/alvarogzp): privileges support\n- [seblucas](https://github.com/seblucas): docker improvements\n- [MOZGIII](https://github.com/MOZGIII): docker support\n- [mshahbazi](https://github.com/mshahbazi): misc fixes and enhancements\n","funding_links":["https://github.com/sponsors/djrobstep"],"categories":["Python","python","Databases","Schema","Utilities"],"sub_categories":["Diff Enhancers","Changes"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdjrobstep%2Fmigra","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdjrobstep%2Fmigra","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdjrobstep%2Fmigra/lists"}