du127953 2017-04-11 04:42
浏览 57

删除所有迁移和数据库后,laravel迁移显示旧错误?

I have configured Laravel database config file to use postgres DB. First of all when I tried to run migration, I got error like

[PDOException]

SQLSTATE[42P01]: Undefined table: 7 ERROR: relation "sales_default_calculations" does not exist
LINE 1: select "id" from "sales_default_calculations" where "status"...

I moved all my migrations from database\migrations folder to database\migrations_bak and dropped the Database and created new one. I even created new Database with different name than before. However, I get same above error, when I run php artisan migrate. Even though migration files and DB is cleared it's showing same old error message. What may have caused this anomaly? Please someone help.

  • 写回答

1条回答 默认 最新

  • dqwn64004 2017-04-13 13:52
    关注

    When you make manual changes to database/migrations folder, you have to run the command composer dump-autoload to make sure the classes are reloaded.

    评论

报告相同问题?

悬赏问题

  • ¥15 2024-五一综合模拟赛
  • ¥15 下图接收小电路,谁知道原理
  • ¥15 装 pytorch 的时候出了好多问题,遇到这种情况怎么处理?
  • ¥20 IOS游览器某宝手机网页版自动立即购买JavaScript脚本
  • ¥15 手机接入宽带网线,如何释放宽带全部速度
  • ¥30 关于#r语言#的问题:如何对R语言中mfgarch包中构建的garch-midas模型进行样本内长期波动率预测和样本外长期波动率预测
  • ¥15 ETLCloud 处理json多层级问题
  • ¥15 matlab中使用gurobi时报错
  • ¥15 这个主板怎么能扩出一两个sata口
  • ¥15 不是,这到底错哪儿了😭