{"id":30318325,"url":"https://github.com/guibranco/github-database-migration-action","last_synced_at":"2026-05-06T18:01:11.347Z","repository":{"id":240591770,"uuid":"775712225","full_name":"guibranco/github-database-migration-action","owner":"guibranco","description":"🎲 :octocat: A GitHub action to manage databaseversioned migrations","archived":false,"fork":false,"pushed_at":"2025-10-17T17:33:20.000Z","size":62,"stargazers_count":2,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-18T19:53:21.587Z","etag":null,"topics":["database","gh-actions","github-actions","manage-database","migration"],"latest_commit_sha":null,"homepage":"http://guilherme.stracini.com.br/github-database-migration-action/","language":"Dockerfile","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/guibranco.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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,"zenodo":null}},"created_at":"2024-03-21T22:39:59.000Z","updated_at":"2025-10-17T17:32:41.000Z","dependencies_parsed_at":"2024-09-06T06:57:47.459Z","dependency_job_id":"66d75848-4105-4b07-92c2-53fd73bd518e","html_url":"https://github.com/guibranco/github-database-migration-action","commit_stats":null,"previous_names":["guibranco/github-mysql-migration-action","guibranco/github-database-migration-action"],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/guibranco/github-database-migration-action","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/guibranco%2Fgithub-database-migration-action","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/guibranco%2Fgithub-database-migration-action/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/guibranco%2Fgithub-database-migration-action/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/guibranco%2Fgithub-database-migration-action/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/guibranco","download_url":"https://codeload.github.com/guibranco/github-database-migration-action/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/guibranco%2Fgithub-database-migration-action/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32705620,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-06T08:33:17.875Z","status":"ssl_error","status_checked_at":"2026-05-06T08:33:17.221Z","response_time":117,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: 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":["database","gh-actions","github-actions","manage-database","migration"],"created_at":"2025-08-17T20:09:53.556Z","updated_at":"2026-05-06T18:01:11.302Z","avatar_url":"https://github.com/guibranco.png","language":"Dockerfile","funding_links":[],"categories":[],"sub_categories":[],"readme":"# GitHub database migration action\n\n[![GitHub repo](https://img.shields.io/badge/GitHub-guibranco%2Fgithub--database--migration--action-green.svg?style=plastic\u0026logo=github)](https://github.com/guibranco/github-database-migration-action \"shields.io\")\n[![GitHub code size in bytes](https://img.shields.io/github/languages/code-size/guibranco/github-database-migration-action?color=green\u0026label=Code%20size\u0026style=plastic\u0026logo=github)](https://github.com/guibranco/github-database-migration-action \"shields.io\")\n[![GitHub last commit](https://img.shields.io/github/last-commit/guibranco/github-database-migration-action?color=green\u0026logo=github\u0026style=plastic\u0026label=Last%20commit)](https://github.com/guibranco/github-database-migration-action \"shields.io\")\n[![GitHub license](https://img.shields.io/github/license/guibranco/github-database-migration-action?color=green\u0026logo=github\u0026style=plastic\u0026label=License)](https://github.com/guibranco/github-database-migration-action \"shields.io\")\n\n![CI](https://github.com/guibranco/github-database-migration-action/actions/workflows/ci.yml/badge.svg)\n[![wakatime](https://wakatime.com/badge/github/guibranco/github-database-migration-action.svg)](https://wakatime.com/badge/github/guibranco/github-database-migration-action)\n\n🎲 :octocat: A GitHub Action to manage versioned database migrations across multiple database drivers.\n\n## Usage\n\n### Parameters\n\n* `OPERATION` (required)\nThe operation to be executed (one of: `dry-run`, `migrate`, `check`, or `integrity`)\n* `DRIVER` (required)\nThe driver to use (one of: `mysql`, `mariadb`, `postgresql`, `mssql` or `oracle11g`)\n* `HOST` (required)\nThe database host address (domain or IPv4).\n* `USER` (required)\nThe username to connect to the database host.\n* `DATABASE` (required)\nThe database name.\n* `INTEGRITY_COMMANDS_FILE` (optional)\nWhen the `OPERATION` is `integrity`, this parameter receives the file with a list (one per line) of commands to run and validate the presence of data in the database.\n\n### Environment variables\n\n* `DATABASE_PWD` (optional)\nThe password to connect to the database host. Set as an environment variable to keep it secure.\n\n### Outputs\n\nNone.\n\n## Example\n\n```yml\n\nname: \"test\"\non:\n  pull_request:\n  push:\n    branches:\n      - main\n\n  jobs:\n    test:\n      runs-on: ubuntu-latest\n      steps:\n      \n      - uses: actions/checkout@v4\n  \n      - name: Run the action\n        uses: guibranco/github-database-migration-action@latest\n        env:\n          DATABASE_PWD: ${{ secrets.DATABASE_PWD }} # Pass the password as an environment variable to keep it secret.\n        with:\n          OPERATION: migrate\n          DRIVER: mysql\n          HOST: 127.0.0.1\n          USER: test\n          DATABASE: test          \n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fguibranco%2Fgithub-database-migration-action","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fguibranco%2Fgithub-database-migration-action","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fguibranco%2Fgithub-database-migration-action/lists"}