I have a project that I started in mysql, I created some migration and I put relationships inside them, whenever I needed to make changes, delete the database and run the migrate again, with mysql always worked.
I need to change the database for postgress, but it is causing me an error when I run the migrate, because in the order of execution of the migrate files they are related to some tables that do not yet exist (they will be created in the next files).
Is there any way I can get postgres to ignore these errors until the artisan runs the next files?
The error message is as follows:
[Illuminate \ Database \ QueryException]
SQLSTATE [42P01]: Undefined table: 7 ERROR: relation "trips" does not exist (SQL: alter table "products" add constraint "foreign_products_id_foreign" foreign key ("viaje_id") references "trips" ("id"))[PDOException]
SQLSTATE [42P01]: Undefined table: 7 ERROR: relation "trips" does not exist