It's because you've added foreign key constraints. In SQL it's a basic thing, you need to delete al

It's because you've added foreign key constraints.

In SQL it's a basic thing, you need to delete all the dependent tables (tables which has foreign keys) and then you need to delete the independent table.

In your case session is the dependent table and user is the independent table.
So deleting user table and then session table would result into an error.

Ik sometimes error messages don't make sense but yeah this is the reason you got the error
Was this page helpful?