PHP code example of orisintel / laravel-online-migrator

1. Go to this page and download the library: Download orisintel/laravel-online-migrator 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/ */

    

orisintel / laravel-online-migrator example snippets

 bash
php artisan vendor:publish --provider='OrisIntel\OnlineMigrator\OnlineMigratorServiceProvider'
 php
'providers' => [
    // ...
    OrisIntel\OnlineMigrator\OnlineMigratorServiceProvider::class,
 php
  'doctrine-enum-mapping' => env('DOCTRINE_ENUM_MAPPING', 'string'),
 bash
php artisan migrate
 bash
php artisan migrate --pretend
 bash
PTOSC_OPTIONS='--recursion-method=none'  php artisan migrate
 php
class MyMigration extends Migration
{
    use \OrisIntel\OnlineMigrator\OnlineIncompatible
 php
class MyMigration extends Migration
{
    use \OrisIntel\OnlineMigrator\InnodbOnlineDdl
 php
class MyMigration extends Migration
{
    use \OrisIntel\OnlineMigrator\CombineIncompatible