Увійти Реєстрація
Блог Серії
Кар'єра
Вакансії Компанії
Навчання
Документація Співбесіди Тестування Відео
Екосистема
Пакети Ресурси Проєкти Інструменти Події
Інше
Про нас Реклама

Migrate Db

thedragoncode/migrate-db
3.4.0 13 156 22.7k 18 березня 2026
На GitHub

Простий інструмент для передачі даних з однієї бази даних в іншу.

4

Поділитись

README

Migrate DB for Laravel

Migrate DB

Stable Version Total Downloads License

Easy data transfer from one database to another

Installation

To get the latest version of Migrate DB, simply require the project using Composer:

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

Service Versions
PHP ^8.0
Laravel ^8.0, ^9.0, ^10.0, ^11.0, ^12.0, ^13.0
Databases MySQL 5.7+, PostgreSQL 9.5+, MSSQL
Laravel \ PostgreSQL 9 10 11 12 13 14 15 16 17 18
8
9
10
11 ✖️ ✖️ ✖️
12 ✖️ ✖️ ✖️
13 ✖️ ✖️ ✖️

Usage

Create a new database and set up both connections in the connections section of the 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

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

Exclude Certain Tables

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

where:

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

This package is licensed under the MIT License.

Коментарі

Увійдіть, щоб залишити коментар

Будьте першим, хто залишить коментар!

Схожі пакети

Laravel Query Builder

spatie/laravel-query-builder

Легко будуйте Eloquent-запити на основі запитів від API.

4,469 7.3.5 13 11

Eloquent Sluggable

cviebrock/eloquent-sluggable

Легке створення слагів для ваших моделей Eloquent у Laravel.

3,997 13.0.1 13 44

Laravel Auditing

owen-it/laravel-auditing

Пакет для аудиту змін Eloquent моделей у Laravel, що дозволяє автоматично відстежувати та записувати всі модифікації даних.

3,457 v14.0.6 13 7

Sushi

calebporzio/sushi

Додатковий драйвер для Eloquent, який дозволяє працювати з масивами даних як з повноцінними Eloquent моделями.

3,003 v2.5.4 13 16

Iseed

orangehill/iseed

Генерує новий файл seed для Laravel на основі даних з існуючої таблиці бази даних.

2,897 v3.8.1 13 6

Eloquent Has Many Deep

staudenmeir/eloquent-has-many-deep

Laravel Eloquent відносини HasManyThrough з необмеженою кількістю рівнів вкладеності.

2,870 v1.22.1 8