{"id":36755688,"url":"https://github.com/bp72/simple-migrations","last_synced_at":"2026-01-12T12:49:27.630Z","repository":{"id":217198277,"uuid":"735552112","full_name":"bp72/simple-migrations","owner":"bp72","description":"A python library for maintaining pure sql migrations in postgresql databases.","archived":false,"fork":false,"pushed_at":"2024-02-04T15:29:01.000Z","size":22,"stargazers_count":26,"open_issues_count":3,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-12-07T01:43:04.288Z","etag":null,"topics":["migrations","postgresql","psycopg","python","sql"],"latest_commit_sha":null,"homepage":"https://pypi.org/project/simple-migrations/","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/bp72.png","metadata":{"files":{"readme":"README.md","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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-12-25T10:26:51.000Z","updated_at":"2025-07-28T16:17:03.000Z","dependencies_parsed_at":null,"dependency_job_id":"4b6cd023-292b-4107-bead-92b6cee29ff2","html_url":"https://github.com/bp72/simple-migrations","commit_stats":null,"previous_names":["bp72/simple-migrations"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/bp72/simple-migrations","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bp72%2Fsimple-migrations","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bp72%2Fsimple-migrations/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bp72%2Fsimple-migrations/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bp72%2Fsimple-migrations/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bp72","download_url":"https://codeload.github.com/bp72/simple-migrations/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bp72%2Fsimple-migrations/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28338983,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-12T12:22:26.515Z","status":"ssl_error","status_checked_at":"2026-01-12T12:22:10.856Z","response_time":98,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6: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":["migrations","postgresql","psycopg","python","sql"],"created_at":"2026-01-12T12:49:27.563Z","updated_at":"2026-01-12T12:49:27.625Z","avatar_url":"https://github.com/bp72.png","language":"Python","readme":"# simple-migrations (beta)\n\n[![PyPI version](https://img.shields.io/pypi/v/simple-migrations.svg)](https://pypi.org/project/simple-migrations)\n[![Python versions](https://img.shields.io/pypi/pyversions/simple-migrations.svg)](https://pypi.org/project/simple-migrations)\n\n### The feedback and contributions are appreciated!\n\nMake your database migrations as simple as possible!\n\n`simple-migrations` is a library that allows you to write database migrations in a pure SQL.\n\nThe order of migrations will be tracked in the database table.\n\nYou can specify the `forwards` and `backwards` command and even write your own scripts.\n\nNo need to apply the scripts manually, you can now automate your deployment flow!\n\nKeep in mind that the library is still in development and is distributed \"as is\".\n\n## How to use\n\nThe example of the config can be found in `simple_migrations.ini` file.\n\nCreate a `simple_migrations.ini` file in the project root and set up the database credentials.\n\nRun `simple-migrations init` to generate the migrations directory and migrations table.\n\nRun `simple-migrations generate` to generate the migration file from the template.\n\nRun `simple-migrations migrate` to apply all unapplied migrations.\n\nRun `simple-migrations migrate \u003cnum\u003e` to migrate or rollback to \u003cnum\u003e migration, for example:\n\n- If the last applied migration was #2, `simple-migrations migrate 4` will apply migrations 3 and 4.\n- If the last applied migration was #4, `simple-migrations migrate 2` will rollback migrations 3 and 4.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbp72%2Fsimple-migrations","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbp72%2Fsimple-migrations","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbp72%2Fsimple-migrations/lists"}