PHP code example of dreamyi12 / reverse-migration

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

    

dreamyi12 / reverse-migration example snippets

shell
//迁移全部数据库表
php bin/hyperf.php gen:reverse-migration 

//迁移单张表
php bin/hyperf.php gen:reverse-migration -table=XXXXXX

//迁移文件生成路径可以由-path 指定