mercredi 3 avril 2019

How to add a nullable column type to an already migrated table

I have a migration with $table->datetime('published_at'); and it is already migrated and data is filled in. Now, I have to make this column ->nullable(), but without using migrate:refresh or rollback. How can I achieve this or is it even possible.



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire