{"id":15150730,"url":"https://github.com/c0de4un/migrations","last_synced_at":"2026-01-19T22:31:50.892Z","repository":{"id":144492286,"uuid":"480881758","full_name":"c0de4un/migrations","owner":"c0de4un","description":"Migrations lib for Golang sql","archived":false,"fork":false,"pushed_at":"2022-04-16T21:47:46.000Z","size":12,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-07T08:42:02.967Z","etag":null,"topics":["go","golang","golang-library","migration","migrations","mysql","sql"],"latest_commit_sha":null,"homepage":"","language":"Go","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/c0de4un.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":"2022-04-12T16:07:05.000Z","updated_at":"2022-04-13T03:39:40.000Z","dependencies_parsed_at":"2023-07-24T07:15:27.353Z","dependency_job_id":null,"html_url":"https://github.com/c0de4un/migrations","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/c0de4un/migrations","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/c0de4un%2Fmigrations","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/c0de4un%2Fmigrations/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/c0de4un%2Fmigrations/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/c0de4un%2Fmigrations/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/c0de4un","download_url":"https://codeload.github.com/c0de4un/migrations/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/c0de4un%2Fmigrations/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28587241,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-19T20:45:59.482Z","status":"ssl_error","status_checked_at":"2026-01-19T20:45:41.500Z","response_time":67,"last_error":"SSL_read: 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":["go","golang","golang-library","migration","migrations","mysql","sql"],"created_at":"2024-09-26T14:41:09.946Z","updated_at":"2026-01-19T22:31:50.870Z","avatar_url":"https://github.com/c0de4un.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Description\nMigrations lib for Golang sql\n\n[![GitHub license](https://img.shields.io/github/license/c0de4un/migrations)](https://github.com/c0de4un/migrations/blob/main/LICENSE)[![GitHub stars](https://img.shields.io/github/stars/c0de4un/migrations)](https://github.com/c0de4un/migrations/stargazers)[![GitHub issues](https://img.shields.io/github/issues/c0de4un/migrations)](https://github.com/c0de4un/migrations/issues)\n![GitHub issues](https://img.shields.io/badge/language-Go-blue)\n\n# Requirements\n* Go 1.18+\n* MySQL\n\n# Test\n*\n```bash\n    $go test\n```\n\n# Examples\n## Up to MAX version\n```go\npackage main\n\nimport (\n    \"github.com/c0de4un/migrations\"\n    \"fmt\"\n)\n\nfunc main() {\n    err := migrations.Up(\"/configs/db.xml\")\n    if err != nil {\n        fmt.Error(err)\n    }\n}\n```\n\n## Down to specific version\n```go\npackage main\n\nimport (\n    \"github.com/c0de4un/migrations\"\n    \"fmt\"\n)\n\nfunc main() {\n    err := migrations.Down(\"/configs/db.xml\", 13)\n    if err != nil {\n        fmt.Error(err)\n    }\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fc0de4un%2Fmigrations","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fc0de4un%2Fmigrations","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fc0de4un%2Fmigrations/lists"}