{"id":20909919,"url":"https://github.com/escalopa/migrate-go","last_synced_at":"2025-10-24T23:03:16.761Z","repository":{"id":204980227,"uuid":"713093066","full_name":"escalopa/migrate-go","owner":"escalopa","description":"A library to migrate database","archived":false,"fork":false,"pushed_at":"2023-11-19T11:22:10.000Z","size":11,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-19T15:20:16.320Z","etag":null,"topics":["golang","migration"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/escalopa.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-11-01T20:28:54.000Z","updated_at":"2023-11-01T22:00:16.000Z","dependencies_parsed_at":"2023-11-19T12:26:27.361Z","dependency_job_id":"d4601afc-0040-4c22-80a8-48f733bc8ca9","html_url":"https://github.com/escalopa/migrate-go","commit_stats":null,"previous_names":["escalopa/migrate-go"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/escalopa%2Fmigrate-go","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/escalopa%2Fmigrate-go/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/escalopa%2Fmigrate-go/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/escalopa%2Fmigrate-go/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/escalopa","download_url":"https://codeload.github.com/escalopa/migrate-go/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243301122,"owners_count":20269286,"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":["golang","migration"],"created_at":"2024-11-18T14:13:14.987Z","updated_at":"2025-10-24T23:03:16.755Z","avatar_url":"https://github.com/escalopa.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# migrate-go 💨\n\nThis is a tool to migrate database.\nBuilt upon [migrate](https://github.com/golang-migrate/migrate). \n\nCore feature is that it can read database dsn from file not only raw string. 🔥\n\n## Usage 🧰\n\n### Flags 🚩\n\n- `-d` : database dsn raw string\n- `-f` : file secret path to read database dsn (overwrite `-d`)\n- `-dir` : migration directory absolute path\n\n### Docker 🐳\n\n1. Using DSN raw string\n```bash\ndocker pull dekuyo/migrate-go:latest\ndocker run --rm -it -v $PWD:/app dekuyo/migrate-go -dir /app/migration -d \"user:password@host:port/database\"\n```\n\n2. Using DSN file\n```bash\ndocker pull dekuyo/migrate-go:latest\ndocker run --rm -it -v $PWD:/app -v /path/to/dsn/file:/path/to/dsn/file dekuyo/migrate-go -dir /app/migration -f /path/to/dsn/file\n```\n\n\n### Docker Compose 🐳\n\n1. Using DSN raw string\n```yaml\ndb-migrate:\n  image: dekuyo/migrate-go:latest\n  volumes:\n    - ./migrations:/migrations\n  command: [ \"-dir\", \"/migrations\", \"-dsn\", \"postgres://postgres:postgres@db:5432/order-shop?sslmode=disable\" ]  \n```\n\n2. Using DSN file\n```yaml\ndb-migrate:\n  image: dekuyo/migrate-go:latest\n  volumes:\n    - ./migrations:/migrations\n    - ./path/to/dsn/file:/path/to/dsn/file\n  command: [ \"-dir\", \"/migrations\", \"-file\", \"/path/to/dsn/file\" ]\n``\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fescalopa%2Fmigrate-go","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fescalopa%2Fmigrate-go","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fescalopa%2Fmigrate-go/lists"}