PHP code example of cleaniquecoders / data-migration
1. Go to this page and download the library: Download cleaniquecoders/data-migration library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
cleaniquecoders / data-migration example snippets
'tables' => [
'_source_table' => 'destination_table',
'media' => 'app_media',
]
text
DATA_MIGRATION_RUN=true
text
DATA_MIGRATION_FK_CHECK=false
text
DATA_MIGRATE_TRUNCATE=true
bash
php artisan data:migrate mysql pgsql
bash
php artisan data:migrate mysql pgsql --chunk=1000