PHP code example of richan-fongdasen / database-converter-laravel
1. Go to this page and download the library: Download richan-fongdasen/database-converter-laravel 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/ */
richan-fongdasen / database-converter-laravel example snippets
return [
'chunk_size' => 700,
];
'connections' => [
'sqlite' => [
'driver' => 'sqlite',
'database' => database_path('database.sqlite'),
'prefix' => '',
'foreign_key_constraints' => true,
],
],
bash
php artisan vendor:publish --provider="RichanFongdasen\DatabaseConverter\DatabaseConverterServiceProvider"
bash
php artisan migrate --database=sqlite --path=database/migrations
bash
php artisan db:convert mysql sqlite