SQLSTATE[42S02]: Base table or view not found: 1146 Table 'db_formsinar.model_has_roles' #2709
Unanswered
KodokMagang
asked this question in
Q&A
Replies: 1 comment
-
Try migrate the table again |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I am experiencing a confusing error, because I did not delete the model_has_role table at all but there is an error log like this “SQLSTATE[42S02]: Base table or view not found: 1146 Table 'db_formsinar.model_has_roles' doesn't exist (Connection: mysql, SQL: select
roles
.*,model_has_roles
.model_id
aspivot_model_id
,model_has_roles
.role_id
aspivot_role_id
,model_has_roles
.model_type
aspivot_model_type
fromroles
inner joinmodel_has_roles
onroles
.id
=model_has_roles
.role_id
wheremodel_has_roles
.model_id
in (1) andmodel_has_roles
.model_type
= App\Models\User)” how to restore the table? Please help me.Beta Was this translation helpful? Give feedback.
All reactions