Laravel 5.4 Specific Table Migration

前端 未结 21 1508
梦如初夏
梦如初夏 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条回答
  •  旧时难觅i
    2020-12-07 10:53

    You could try to use the --path= option to define the specific sub-folder you're wanting to execute and place specific migrations in there.

    Alternatively you would need to remove reference and tables from the DB and migrations tables which isn't ideal :/

提交回复
热议问题