SQLite Foreign Keys with Set Null on Delete not working for PHPUnit test
I have added a foreign keys constraint in migration file for posts table to the user_id column. So, on delete user, I want to set the user_id column to null. So, I added this.
@s4muel@staudenmeir
My current Laravel version is v5.7.19. And I have checked the configuration file and foreign keys constraints are enabled by default.
And I have also already tried Schema::enableForeignKeyConstraints(); but it did not worked.