PHPackages                             dragon-code/migrate-db - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Database &amp; ORM](/categories/database)
4. /
5. dragon-code/migrate-db

ActiveLibrary[Database &amp; ORM](/categories/database)

dragon-code/migrate-db
======================

Easy data transfer from one database to another

3.4.0(3mo ago)15622.1k↓72.6%6MITPHPPHP ^8.0CI passing

Since Feb 12Pushed 2w ago5 watchersCompare

[ Source](https://github.com/TheDragonCode/migrate-db)[ Packagist](https://packagist.org/packages/dragon-code/migrate-db)[ Fund](https://boosty.to/dragon-code)[ Fund](https://yoomoney.ru/to/410012608840929)[ RSS](/packages/dragon-code-migrate-db/feed)WikiDiscussions main Synced yesterday

READMEChangelog (10)Dependencies (18)Versions (27)Used By (0)

Migrate DB for Laravel
======================

[](#migrate-db-for-laravel)

  ![Migrate DB](https://camo.githubusercontent.com/ca96925c6453b6c54955a61e5c50f47ad3ab2758a1c9fc93f80e966db5df90fc/68747470733a2f2f62616e6e6572732e6265796f6e64636f2e64652f4d69677261746525323044422e706e673f7061747465726e3d746f706f677261706879267374796c653d7374796c655f3226666f6e7453697a653d3130307078266d643d312673686f7757617465726d61726b3d31267468656d653d6c69676874267061636b6167654d616e616765723d636f6d706f7365722b72657175697265267061636b6167654e616d653d647261676f6e2d636f64652532466d6967726174652d6462266465736372697074696f6e3d456173792b646174612b7472616e736665722b66726f6d2b6f6e652b64617461626173652b746f2b616e6f7468657226696d616765733d68747470732533412532462532466c61726176656c2e636f6d253246696d672532466c6f676f6d61726b2e6d696e2e737667)[![Stable Version](https://camo.githubusercontent.com/5ca005a15628c548246cc139da4c75091553a8816f82b771f847780287560c9b/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f762f72656c656173652f546865447261676f6e436f64652f6d6967726174652d64623f6c6162656c3d737461626c65267374796c653d666c61742d737175617265)](https://packagist.org/packages/dragon-code/migrate-db)[![Total Downloads](https://camo.githubusercontent.com/8c92f6ec3419dff4c9c89209e88e89b2473efa38716016c0c011ef78d823ebfc/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f647261676f6e2d636f64652f6d6967726174652d64622e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/dragon-code/migrate-db)[![License](https://camo.githubusercontent.com/daad216dbf3a0b47fda4681726e40e07efe27b63904274c88fd0f74c0333dc7d/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f647261676f6e2d636f64652f6d6967726174652d64622e7376673f7374796c653d666c61742d737175617265)](LICENSE)

> Easy data transfer from one database to another

Installation
------------

[](#installation)

To get the latest version of `Migrate DB`, simply require the project using [Composer](https://getcomposer.org):

```
composer require dragon-code/migrate-db --dev
```

Or manually update `require-dev` block of `composer.json` and run `composer update`.

```
{
    "require-dev": {
        "dragon-code/migrate-db": "^3.0"
    }
}
```

Compatibility
-------------

[](#compatibility)

ServiceVersionsPHP^8.0Laravel^8.0, ^9.0, ^10.0, ^11.0, ^12.0, ^13.0DatabasesMySQL 5.7+, PostgreSQL 9.5+, MSSQLLaravel \\ PostgreSQL91011121314151617188✅✅✅✅✅✅✅✅✅✅9✅✅✅✅✅✅✅✅✅✅10✅✅✅✅✅✅✅✅✅✅11✖️✖️✖️✅✅✅✅✅✅✅12✖️✖️✖️✅✅✅✅✅✅✅13✖️✖️✖️✅✅✅✅✅✅✅Usage
-----

[](#usage)

Create a new database and set up both connections in the `connections` section of the [config/database.php](https://github.com/laravel/laravel/blob/master/config/database.php) file, then run the `db:migrate` console command passing two parameters:

```
php artisan db:migrate --schema-from=foo --schema-to=bar
```

### For Certain Tables

[](#for-certain-tables)

```
php artisan db:migrate --schema-from=foo --schema-to=bar --tables=table1 --tables=table2
```

### Exclude Certain Tables

[](#exclude-certain-tables)

```
php artisan db:migrate --schema-from=foo --schema-to=bar --exclude=table1 --exclude=table2
```

where:

- `foo` - Source [connection](https://github.com/laravel/laravel/blob/master/config/database.php) name
- `bar` - Target [connection](https://github.com/laravel/laravel/blob/master/config/database.php) name

Follow 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.

Enjoy 😊

License
-------

[](#license)

This package is licensed under the [MIT License](LICENSE).

###  Health Score

58

—

FairBetter than 98% of packages

Maintenance89

Actively maintained with recent releases

Popularity42

Moderate usage in the ecosystem

Community17

Small or concentrated contributor base

Maturity68

Established project with proven stability

 Bus Factor1

Top contributor holds 51.3% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~80 days

Recently: every ~183 days

Total

24

Last Release

107d ago

Major Versions

1.x-dev → v2.0.02021-11-20

v2.2.0 → v3.0.02022-04-20

PHP version history (4 changes)v1.0-RC1PHP ^7.2.5|^8.0

v1.1.1PHP ^7.3|^8.0

v2.1.0PHP ^7.3 || ^8.0

v3.0.0PHP ^8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/b77790e612f1c9beed1e1533e36eba4954fbd6da2a5c9f71e845cd0f5465f0ad?d=identicon)[Helldar](/maintainers/Helldar)

---

Top Contributors

[![andrey-helldar](https://avatars.githubusercontent.com/u/10347617?v=4)](https://github.com/andrey-helldar "andrey-helldar (101 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (43 commits)")[![actions-user](https://avatars.githubusercontent.com/u/65916846?v=4)](https://github.com/actions-user "actions-user (27 commits)")[![Jagdish-J-P](https://avatars.githubusercontent.com/u/20887370?v=4)](https://github.com/Jagdish-J-P "Jagdish-J-P (21 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (5 commits)")

---

Tags

databasemigrationmigration-toolmigrationsmssqlmysqlpgsqlmigrationdatabasetransferdragondragon codeandrey helldarmigratingmove

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/dragon-code-migrate-db/health.svg)

```
[![Health](https://phpackages.com/badges/dragon-code-migrate-db/health.svg)](https://phpackages.com/packages/dragon-code-migrate-db)
```

###  Alternatives

[psalm/plugin-laravel

Psalm plugin for Laravel

3355.3M346](/packages/psalm-plugin-laravel)[illuminate/database

The Illuminate Database package.

2.8k54.9M11.6k](/packages/illuminate-database)[laravel/ai

The official AI SDK for Laravel.

1.0k3.2M194](/packages/laravel-ai)[illuminate/queue

The Illuminate Queue package.

21332.6M1.6k](/packages/illuminate-queue)[api-platform/laravel

API Platform support for Laravel

58171.4k14](/packages/api-platform-laravel)[pressbooks/pressbooks

Pressbooks is an open source book publishing tool built on a WordPress multisite platform. Pressbooks outputs books in multiple formats, including PDF, EPUB, web, and a variety of XML flavours, using a theming/templating system, driven by CSS.

45444.2k1](/packages/pressbooks-pressbooks)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
