Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Easy data transfer from one database to another

License

NotificationsYou must be signed in to change notification settings

TheDragonCode/migrate-db

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Migrate DB

Stable VersionTotal DownloadsLicense

Easy data transfer from one database to another

Installation

To get the latest version ofMigrate DB, simply require the project usingComposer:

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

Or manually updaterequire-dev block ofcomposer.json and runcomposer update.

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

Compatibility

ServiceVersions
PHP^8.0
Laravel^8.0, ^9.0, ^10.0, ^11.0, ^12.0
DatabasesMySQL 5.7+, PostgreSQL 9.5+, MSSQL
Laravel \ PostgreSQL91011121314151617
8
9
10
11✖️✖️✖️
12✖️✖️✖️

Usage

Create a new database and set up both connections in theconnections section oftheconfig/database.php file, then run thedb:migrate console command passing twoparameters:

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 theMIT License.

About

Easy data transfer from one database to another

Topics

Resources

License

Contributing

Stars

Watchers

Forks

Sponsor this project

    Contributors6

    Languages


    [8]ページ先頭

    ©2009-2025 Movatter.jp