{"id":13721484,"url":"https://github.com/artemeff/pgsql_migration","last_synced_at":"2025-10-18T04:56:13.319Z","repository":{"id":27220565,"uuid":"30691700","full_name":"artemeff/pgsql_migration","owner":"artemeff","description":"PostgreSQL migrations for Erlang","archived":false,"fork":false,"pushed_at":"2023-01-20T21:50:38.000Z","size":8,"stargazers_count":19,"open_issues_count":1,"forks_count":10,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-05T03:31:53.016Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Erlang","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/artemeff.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}},"created_at":"2015-02-12T07:52:56.000Z","updated_at":"2022-10-18T15:34:42.000Z","dependencies_parsed_at":"2023-02-12T05:45:14.013Z","dependency_job_id":null,"html_url":"https://github.com/artemeff/pgsql_migration","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/artemeff/pgsql_migration","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/artemeff%2Fpgsql_migration","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/artemeff%2Fpgsql_migration/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/artemeff%2Fpgsql_migration/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/artemeff%2Fpgsql_migration/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/artemeff","download_url":"https://codeload.github.com/artemeff/pgsql_migration/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/artemeff%2Fpgsql_migration/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279467311,"owners_count":26175226,"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-10-18T02:00:06.492Z","response_time":62,"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-08-03T01:01:17.647Z","updated_at":"2025-10-18T04:56:13.290Z","avatar_url":"https://github.com/artemeff.png","language":"Erlang","readme":"### PostgreSQL migrations for Erlang\n\n---\n\nSimple utility to add migrations for Erlang projects. It doesn't have any database abstraction, you'll still operate with plain SQL and it only supports PostgreSQL (using pgsql or epgsql library). _Inspired by [erlang-sql-migrations](https://github.com/spawngrid/erlang-sql-migrations) by spawngrid_.\n\n---\n\n#### Use\n\nIn order to use the tool one writes 'migration' files. Most important thing here is to name in the order of their versioning, like this: `[timestamp]_name.sql`.\n\n```sql\n-- priv/migrations/1423733547_users.sql\n-- :up\nCREATE TABLE users();\n\n-- :down\nDROP TABLE users;\n```\n\n```erlang\npgsql_migration:migrate(Conn, \"priv/migrations\").\n```\n\nYou can rename pgsql driver, if you use [epgsql](https://github.com/epgsql/epgsql) 3.0 or newer:\n\n```erlang\npgsql_migration:use_driver(epgsql).\n```\n\n---\n\n### Contributing\n\n1. Fork it\n2. Create your feature branch (`git checkout -b my-new-feature`)\n3. Commit your changes (`git commit -am 'add some feature'`)\n4. Push to the branch (`git push origin my-new-feature`)\n5. Create new Pull Request\n","funding_links":[],"categories":["General Libraries","ORM and Datamapping"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fartemeff%2Fpgsql_migration","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fartemeff%2Fpgsql_migration","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fartemeff%2Fpgsql_migration/lists"}