1
我遇到了一个非常奇怪的问题。起初,我在迁移期间遇到过它,但从那时起,它就发生在所有命令中。即使composer install
和php artisan serve
告诉我:所有工匠命令抛出PDOException
[Illuminate\Database\QueryException]
SQLSTATE[42S02]: Base table or view not found: 1146 Table 'mydb.patent_examination_types' doesn'
t exist (SQL: select * from `patent_examination_types`)
[Doctrine\DBAL\Driver\PDOException]
SQLSTATE[42S02]: Base table or view not found: 1146 Table 'mydb.patent_examination_types' doesn'
t exist
[PDOException]
SQLSTATE[42S02]: Base table or view not found: 1146 Table 'mydb.patent_examination_types' doesn'
t exist
我已经试过composer dump-autoload
,它说Generating autoload files
,然后,如果我说我php artisan serve
得到相同的结果。
我很困惑!
这些表是否存在于您的数据库中? – Marcin
@MarcinC。不是现在。但他们是我的应用程序的一部分。顺便说一下,这只是错误中的一张表。 – dotslash
你正在运行什么工匠命令? –