When deleting a foreign key column, an exception is thrown:
Unhandled rejection Error: ER_FK_COLUMN_CANNOT_DROP: Cannot drop column 'user_id': needed in a foreign key constraint 'relationship_ibfk_1'
Need to use for foreign keys:
ALTER TABLE table_name DROP FOREIGN KEY constraint_name
When deleting a foreign key column, an exception is thrown:
Unhandled rejection Error: ER_FK_COLUMN_CANNOT_DROP: Cannot drop column 'user_id': needed in a foreign key constraint 'relationship_ibfk_1'
Need to use for foreign keys: