{"id":18655488,"url":"https://github.com/go-rel/migration","last_synced_at":"2025-04-11T17:31:56.218Z","repository":{"id":37688519,"uuid":"462602900","full_name":"go-rel/migration","owner":"go-rel","description":"Database Migration utility for REL","archived":false,"fork":false,"pushed_at":"2024-12-02T00:39:14.000Z","size":59,"stargazers_count":6,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-10T07:28:31.619Z","etag":null,"topics":["database","go","golang","hacktoberfest","mysql"],"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/go-rel.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","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},"funding":{"github":"Fs02"}},"created_at":"2022-02-23T06:02:49.000Z","updated_at":"2025-02-11T22:07:46.000Z","dependencies_parsed_at":"2024-02-21T23:00:34.270Z","dependency_job_id":"f67ff3b1-1152-4c90-9c4a-3c2bfdedb824","html_url":"https://github.com/go-rel/migration","commit_stats":{"total_commits":37,"total_committers":2,"mean_commits":18.5,"dds":0.4054054054054054,"last_synced_commit":"e56035fe390886f544efe934e32b489b72fdf83a"},"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/go-rel%2Fmigration","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/go-rel%2Fmigration/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/go-rel%2Fmigration/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/go-rel%2Fmigration/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/go-rel","download_url":"https://codeload.github.com/go-rel/migration/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248449855,"owners_count":21105577,"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":["database","go","golang","hacktoberfest","mysql"],"created_at":"2024-11-07T07:19:07.123Z","updated_at":"2025-04-11T17:31:56.197Z","avatar_url":"https://github.com/go-rel.png","language":"Go","funding_links":["https://github.com/sponsors/Fs02"],"categories":[],"sub_categories":[],"readme":"# migration\n\n[![GoDoc](https://godoc.org/github.com/go-rel/migration?status.svg)](https://pkg.go.dev/github.com/go-rel/migration)\n[![Test](https://github.com/go-rel/migration/actions/workflows/test.yml/badge.svg)](https://github.com/go-rel/migration/actions/workflows/test.yml)\n[![Go Report Card](https://goreportcard.com/badge/github.com/go-rel/migration)](https://goreportcard.com/report/github.com/go-rel/migration)\n[![codecov](https://codecov.io/gh/go-rel/migration/branch/main/graph/badge.svg?token=1yyLz5sbBR)](https://codecov.io/gh/go-rel/migration)\n[![Gitter chat](https://badges.gitter.im/go-rel/rel.png)](https://gitter.im/go-rel/rel)\n\nDatabase Migration utility for Golang.\n\n## Example \n\n```go\npackage main\n\nimport (\n    \"context\"\n\n    \"github.com/go-rel/doc/examples/db/migrations\"\n    \"github.com/go-rel/mysql\"\n    \"github.com/go-rel/rel\"\n    \"github.com/go-rel/rel/migrator\"\n    _ \"github.com/go-sql-driver/mysql\"\n)\n\nfunc main() {\n    var (\n        ctx  = context.TODO()\n        repo = rel.New(mysql.MustOpen(\"root@(source:3306)/rel_test?charset=utf8\u0026parseTime=True\u0026loc=Local\"))\n        m    = migrator.New(repo)\n    )\n\n    // Register migrations\n    m.Register(20202806225100, migrations.MigrateCreateTodos, migrations.RollbackCreateTodos)\n\n    // Run migrations\n    m.Migrate(ctx)\n    // OR:\n    // m.Rollback(ctx)\n}\n```\n\nMore Info: https://go-rel.github.io/migration\n\n## License\n\nReleased under the [MIT License](https://github.com/go-rel/migration/blob/master/LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgo-rel%2Fmigration","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgo-rel%2Fmigration","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgo-rel%2Fmigration/lists"}