dongshi1606 2016-04-15 00:15
浏览 62

Laravel在我的宅基地上迁移了多个站点和数据库

So I have set up my homestead so that I have two sites with two separate DB's. I can go to both sites separately when I run homestead up and can make changes to one site separately from the other. But when I try to do a simple migration of the in box create_user_table on the 2nd site it says there is nothing to migrate. I run migrate:status and it says both migrations (create_user_table and create_passworde_resets_table) have been made but nothing is showing up in 2nd my database.

I have a hunch that my 2nd site is still pointing to the first DB because when I run migrate:rollback I get a message that a class from my other project can't be found. How can I point my 2nd project at my 2nd DB?

p.s. I know the 2nd DB exists because I used sequel pro to login to my VM and I see that both DB's are there

  • 写回答

1条回答 默认 最新

  • dongtiao6362 2016-04-15 00:30
    关注

    Ok I figured it out. I had to go into my .env file and edit the DB_DATABASE variable to the proper database name.

    评论

报告相同问题?

悬赏问题

  • ¥15 微信会员卡接入微信支付商户号收款
  • ¥15 如何获取烟草零售终端数据
  • ¥15 数学建模招标中位数问题
  • ¥15 phython路径名过长报错 不知道什么问题
  • ¥15 深度学习中模型转换该怎么实现
  • ¥15 HLs设计手写数字识别程序编译通不过
  • ¥15 Stata外部命令安装问题求帮助!
  • ¥15 从键盘随机输入A-H中的一串字符串,用七段数码管方法进行绘制。提交代码及运行截图。
  • ¥15 TYPCE母转母,插入认方向
  • ¥15 如何用python向钉钉机器人发送可以放大的图片?