V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
shuson
0.21D
V2EX  ›  PHP

在 homestead 里使用 Laravel 的 migration 遇到了一个问题,新的 migration 没有被 migrated

  •  
  •   shuson · Aug 30, 2015 · 2343 views
    This topic created in 3903 days ago, the information mentioned may be changed or developed.

    在棧爆了 stackoverflow 里开了个问题,至今无人可答。
    http://stackoverflow.com/questions/32293775/laravel-artisan-migrate-not-creating-new-table

    求解答

    2 replies    2015-08-30 23:59:06 +08:00
    frozenshadow
        1
    frozenshadow  
       Aug 30, 2015
    ```
    php artisan make:migration create_profiles_table
    ```
    这个貌似只是生产了 create_profiles_table.php 这个文件

    再次运行 php artisan make:migration 才会生成表

    非专业回答,仅供参考
    shuson
        2
    shuson  
    OP
       Aug 30, 2015
    @frozenshadow 虽然不正确 但是要感谢

    按文档的顺序是先 php artisan make:migration create_xxx_table 之后是 php artisan migrate 才是建表

    问题是表没见到
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5395 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 28ms · UTC 09:26 · PVG 17:26 · LAX 02:26 · JFK 05:26
    ♥ Do have faith in what you're doing.