SQLSTATE[2BP01]: Dependent objects still exist: 7 ERROR: cannot drop table blog_categories because other objects depend on it
DETAIL: constraint blog_posts_blog_category_id_foreign on table blog_posts depends on table blog_categories
HINT: Use DROP ... CASCADE to drop the dependent objects too. (Connection: pgsql, SQL: drop table if exists "blog_categories")
Fixes the below error:
Rollback option is not working due to this error:
SQLSTATE[2BP01]: Dependent objects still exist: 7 ERROR: cannot drop table blog_categories because other objects depend on it DETAIL: constraint blog_posts_blog_category_id_foreign on table blog_posts depends on table blog_categories HINT: Use DROP ... CASCADE to drop the dependent objects too. (Connection: pgsql, SQL: drop table if exists "blog_categories")