Laravel 5.4 Specific Table Migration

前端 未结 21 1517
梦如初夏
梦如初夏 2020-12-07 10:38

Hi read all the included documentation here in https://laravel.com/docs/5.4/migrations.

Is there a way on how to migrate a certain migration file (1 migration only),

21条回答
  •  没有蜡笔的小新
    2020-12-07 10:57

    You can only run this command in your terminal

    php artisan migrate --path=database/migrations/2020_10_01_164611_create_asset_info_table.php
    

    After migrations you should put the particular file name. or if you have any folder inside migration then just add that folder name after the migration.

    Like this

    php artisan migrate --path=database/migrations/yourfolder/2020_10_01_164611_create_asset_info_table.php
    

    I hope this will help you a lil bit. Happy Coding.

提交回复
热议问题