due to the foreign key constraints in the blog_posts table, you cannot reset/rollback the blog tables migration. under mysql8 you will receive the following error
Cannot drop table 'blog_categories' referenced by a foreign key constraint 'blog_posts_blog_category_id_foreign' on table 'blog_posts'
Filament Blog Version
2
Filament Version
3
Laravel Version
10
Livewire Version
No response
PHP Version
8.2
Problem description
due to the foreign key constraints in the blog_posts table, you cannot reset/rollback the blog tables migration. under mysql8 you will receive the following error
This can be resolved by dropping or disabling the foreign keys within the migration during rollback https://laravel.com/docs/9.x/migrations#dropping-foreign-keys
Expected behavior
rollbacking of blog tables migration actually works without error and blog tables are dropped
Steps to reproduce
Reproduction repository
https://github.com
Relevant log output
No response