vendredi 10 janvier 2020

Laravel workaround for after() migration method not working in PostgreSQL

I am writing a Laravel API which uses PostgreSQL as its DB.

The problem is that every time i add a ->after('column-name') into one of my migrations, it doesn't work.

I see in the documentation that the after() method is only for MySQL.

Is there any other way that i can place a column after another in PostgreSQL using Laravel Migrations?

Any advice would be greatly appreciated.



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire