You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using postgres and when i migrate the error bellow shows up.
'''
Migration table created successfully.
[Illuminate\Database\QueryException]
SQLSTATE[42830]: Invalid foreign key: 7 ERROR: there is no unique constrai
nt matching given keys for referenced table "roles" (SQL: alter table "user
s" add constraint "users_role_level_foreign" foreign key ("role_level") ref
erences "roles" ("level"))
[PDOException]
SQLSTATE[42830]: Invalid foreign key: 7 ERROR: there is no unique constrai
nt matching given keys for referenced table "roles"
'''
The text was updated successfully, but these errors were encountered:
I'm using postgres and when i migrate the error bellow shows up.
'''
Migration table created successfully.
[Illuminate\Database\QueryException]
SQLSTATE[42830]: Invalid foreign key: 7 ERROR: there is no unique constrai
nt matching given keys for referenced table "roles" (SQL: alter table "user
s" add constraint "users_role_level_foreign" foreign key ("role_level") ref
erences "roles" ("level"))
[PDOException]
SQLSTATE[42830]: Invalid foreign key: 7 ERROR: there is no unique constrai
nt matching given keys for referenced table "roles"
'''
The text was updated successfully, but these errors were encountered: