{"id":14973964,"url":"https://github.com/thedragoncode/migrate-db","last_synced_at":"2025-04-05T17:09:24.510Z","repository":{"id":37184715,"uuid":"338000763","full_name":"TheDragonCode/migrate-db","owner":"TheDragonCode","description":"Easy data transfer from one database to another","archived":false,"fork":false,"pushed_at":"2024-07-10T19:59:58.000Z","size":280,"stargazers_count":147,"open_issues_count":0,"forks_count":3,"subscribers_count":7,"default_branch":"main","last_synced_at":"2024-10-30T06:58:23.395Z","etag":null,"topics":["database","migration","migration-tool","migrations","mssql","mysql","pgsql"],"latest_commit_sha":null,"homepage":"","language":"PHP","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/TheDragonCode.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},"funding":{"custom":["https://boosty.to/dragon-code","https://yoomoney.ru/to/410012608840929","https://www.donationalerts.com/r/dragon_code"]}},"created_at":"2021-02-11T10:47:40.000Z","updated_at":"2024-09-26T12:51:49.000Z","dependencies_parsed_at":"2024-03-30T03:02:36.484Z","dependency_job_id":"bc4b91c7-0a6e-41d4-b1b8-39723d55b0bf","html_url":"https://github.com/TheDragonCode/migrate-db","commit_stats":{"total_commits":271,"total_committers":7,"mean_commits":"38.714285714285715","dds":0.4464944649446494,"last_synced_commit":"52b728fc1ebe24b65582c25959463f1c27280800"},"previous_names":[],"tags_count":18,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheDragonCode%2Fmigrate-db","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheDragonCode%2Fmigrate-db/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheDragonCode%2Fmigrate-db/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheDragonCode%2Fmigrate-db/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/TheDragonCode","download_url":"https://codeload.github.com/TheDragonCode/migrate-db/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247369953,"owners_count":20927928,"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","migration","migration-tool","migrations","mssql","mysql","pgsql"],"created_at":"2024-09-24T13:49:45.115Z","updated_at":"2025-04-05T17:09:24.505Z","avatar_url":"https://github.com/TheDragonCode.png","language":"PHP","readme":"# Migrate DB for Laravel\n\n\u003cimg src=\"https://preview.dragon-code.pro/the-dragon-code/migrate-db.svg?brand=laravel\" alt=\"Migrate DB\"/\u003e\n\n[![Stable Version][badge_stable]][link_packagist]\n[![Total Downloads][badge_downloads]][link_packagist]\n[![License][badge_license]][link_license]\n\n\u003e Easy data transfer from one database to another\n\n## Installation\n\nTo get the latest version of `Migrate DB`, simply require the project using [Composer](https://getcomposer.org):\n\n```bash\ncomposer require dragon-code/migrate-db --dev\n```\n\nOr manually update `require-dev` block of `composer.json` and run `composer update`.\n\n```json\n{\n    \"require-dev\": {\n        \"dragon-code/migrate-db\": \"^3.0\"\n    }\n}\n```\n\n## Compatibility\n\n| Service   | Versions                           |\n|:----------|:-----------------------------------|\n| PHP       | ^8.0                               |\n| Laravel   | ^8.0, ^9.0, ^10.0, ^11.0, ^12.0    |\n| Databases | MySQL 5.7+, PostgreSQL 9.5+, MSSQL |\n\n| Laravel \\ PostgreSQL | 9  | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 |\n|:---------------------|----|----|----|----|----|----|----|----|----|\n| 8                    | ✅  | ✅  | ✅  | ✅  | ✅  | ✅  | ✅  | ✅  | ✅  |\n| 9                    | ✅  | ✅  | ✅  | ✅  | ✅  | ✅  | ✅  | ✅  | ✅  |\n| 10                   | ✅  | ✅  | ✅  | ✅  | ✅  | ✅  | ✅  | ✅  | ✅  |\n| 11                   | ✖️ | ✖️ | ✖️ | ✅  | ✅  | ✅  | ✅  | ✅  | ✅  |\n| 12                   | ✖️ | ✖️ | ✖️ | ✅  | ✅  | ✅  | ✅  | ✅  | ✅  |\n\n\n## Usage\n\nCreate a new database and set up both connections in the `connections` section of\nthe [config/database.php](https://github.com/laravel/laravel/blob/master/config/database.php) file, then run the `db:migrate` console command passing two\nparameters:\n\n```bash\nphp artisan db:migrate --schema-from=foo --schema-to=bar\n```\n\n### For Certain Tables\n\n```bash\nphp artisan db:migrate --schema-from=foo --schema-to=bar --tables=table1 --tables=table2\n```\n\n### Exclude Certain Tables\n\n```bash\nphp artisan db:migrate --schema-from=foo --schema-to=bar --exclude=table1 --exclude=table2\n```\n\nwhere:\n\n* `foo` - Source [connection](https://github.com/laravel/laravel/blob/master/config/database.php) name\n* `bar` - Target [connection](https://github.com/laravel/laravel/blob/master/config/database.php) name\n\nFollow on screen instructions and then command will perform all migrations on the source and destination databases and transfer all records from the old to the new one.\n\nEnjoy 😊\n\n\n## License\n\nThis package is licensed under the [MIT License](LICENSE).\n\n\n[badge_downloads]:      https://img.shields.io/packagist/dt/dragon-code/migrate-db.svg?style=flat-square\n\n[badge_license]:        https://img.shields.io/packagist/l/dragon-code/migrate-db.svg?style=flat-square\n\n[badge_stable]:         https://img.shields.io/github/v/release/TheDragonCode/migrate-db?label=stable\u0026style=flat-square\n\n[link_build]:           https://github.com/TheDragonCode/migrate-db/actions\n\n[link_license]:         LICENSE\n\n[link_packagist]:       https://packagist.org/packages/dragon-code/migrate-db\n","funding_links":["https://boosty.to/dragon-code","https://yoomoney.ru/to/410012608840929","https://www.donationalerts.com/r/dragon_code"],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthedragoncode%2Fmigrate-db","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthedragoncode%2Fmigrate-db","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthedragoncode%2Fmigrate-db/lists"}