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.
手动更改database/migrations
文件夹时,必须运行命令composer dump-autoload
以确保重新加载了类。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.