Laravel 5.4 Specific Table Migration

前端 未结 21 1382
梦如初夏
梦如初夏 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 11:08

    Or you can simply delete migration file name from your database, in "migrations" table and then run : php artitsan migration

    0 讨论(0)
  • 2020-12-07 11:09

    You can run command like this

    php artisan migrate --path=/database/migrations/2020_04_10_130703_create_test_table.php
    
    0 讨论(0)
  • 2020-12-07 11:12

    Specific Table Migration

    php artisan migrate --path=/database/migrations/fileName.php
    
    0 讨论(0)
提交回复
热议问题