SQLSTATE[HY000]: General error: 1824 Failed to open the referenced table 'pharmacies' (SQL: alter table orders add constraint orders_pharmacy_id_foreign foreign key (pharmacy_id) references pharmacies (id))
How to solve: make new order of migration like pharmacies table should exist before orders table etc.