ds3016 2017-05-04 15:02 采纳率: 100%
浏览 87

Heroku上的Laravel数据库迁移

I need to add a new table to my databases on a laravel project. However, I already have data in production and the code is deployed on heroku.

If I create a table on heroku and run a migration on heroku, that won't be reflected in my local code.

Is the proper method to create the table and migration in the local copy, push the code to heroku, and then run another migration on heroku?

If that is the case, do I first run something like this command to create the migration file, then edit the migration file to the table properties that I desire, and then push to heroku and run a migration or do I need to run a migration on my local copy first?

php artisan make:migration create_users_table --create=users

Thanks

  • 写回答

0条回答

    报告相同问题?

    悬赏问题

    • ¥20 有关区间dp的问题求解
    • ¥15 多电路系统共用电源的串扰问题
    • ¥15 slam rangenet++配置
    • ¥15 有没有研究水声通信方面的帮我改俩matlab代码
    • ¥15 对于相关问题的求解与代码
    • ¥15 ubuntu子系统密码忘记
    • ¥15 信号傅里叶变换在matlab上遇到的小问题请求帮助
    • ¥15 保护模式-系统加载-段寄存器
    • ¥15 电脑桌面设定一个区域禁止鼠标操作
    • ¥15 求NPF226060磁芯的详细资料