PHP code example of jorgegru / migrate

1. Go to this page and download the library: Download jorgegru/migrate 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/ */

    

jorgegru / migrate example snippets

sh
$ cp vendor/jorgegru/migrate/PHPMigrateConf.exemplo.php PHPMigrateConf.php
sh
## Criar a tabela migrations
$ php vendor/jorgegru/migrate/start init

## Cria o arquivo na pasta migrations
## exemplo NOME_ARQUIVO = create-table-clients / alter-table-clients
$ php vendor/jorgegru/migrate/start create NOME_ARQUIVO
sh
## Para rodar todas as migrate
$ php vendor/jorgegru/migrate/start migrate