{"id":23152548,"url":"https://github.com/prosumma/hs-migrator","last_synced_at":"2025-09-13T12:08:16.725Z","repository":{"id":265959457,"uuid":"896974018","full_name":"Prosumma/hs-migrator","owner":"Prosumma","description":"A PostgreSQL database migrator","archived":false,"fork":false,"pushed_at":"2025-04-02T02:01:58.000Z","size":35,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-23T04:28:57.722Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Haskell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Prosumma.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"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}},"created_at":"2024-12-01T18:54:03.000Z","updated_at":"2025-04-02T02:02:01.000Z","dependencies_parsed_at":"2025-02-10T01:29:44.972Z","dependency_job_id":null,"html_url":"https://github.com/Prosumma/hs-migrator","commit_stats":null,"previous_names":["prosumma/hs-migrator"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/Prosumma/hs-migrator","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Prosumma%2Fhs-migrator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Prosumma%2Fhs-migrator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Prosumma%2Fhs-migrator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Prosumma%2Fhs-migrator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Prosumma","download_url":"https://codeload.github.com/Prosumma/hs-migrator/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Prosumma%2Fhs-migrator/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274957129,"owners_count":25380859,"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-09-13T02:00:10.085Z","response_time":70,"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":[],"created_at":"2024-12-17T19:16:06.575Z","updated_at":"2025-09-13T12:08:16.670Z","avatar_url":"https://github.com/Prosumma.png","language":"Haskell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Migrator\n\nA low-level, slightly idiosyncratic PostgreSQL migration tool written in Haskell for my personal use.\n\n- It supports PostgreSQL only.\n- It supports only \"up\" migrations, not \"down\" migrations.\n\n## Installation\n\n```sh\nstack build \u0026\u0026 stack install\n```\n\nThis installs an executable called `migrate`.\n\n## Usage\n\nFor usage, execute `migrate --help`. For usage on any individual command, `migrate --help COMMAND`, e.g., `migrate --help up`.\n\n## Connection\n\nConnection information is not passed with command line arguments, but using the same environment variables used by the `psql` command line tool, e.g., `PGHOST`, `PGDATABASE`, `PGUSER`, etc.\n\n```sh\nPGDATABASE=foo PGUSER=bob migrate up --drop --directory migrations\n```\n\nThe specified user must have the appropriate permissions to perform the migration. What exactly those are depends on the migration and options (such as `--drop`), but in general, a migration should be run by a superuser, since it involves extensive use of DDL.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprosumma%2Fhs-migrator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fprosumma%2Fhs-migrator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprosumma%2Fhs-migrator/lists"}