Laravel Migration add field after data in table?

I have a migration called CreateItemsTable; I ran this, I have elements in this table, now I need to add a new field to the table. I can’t just add the field to the migration file and migrate:refresh, because I need the data that is in it.

Should I do another migration to add a field? It seems like a mess, while I test things during development, I can change fields a lot. I'm not sure migration is cleaner than just PhpMyAdmin ... or maybe I don't understand them?

+5
source share
1 answer

, , - , . . , , , ( ), - , . .

, , .

, , , Schema::create(). Scheme::table(). , , .

+8

All Articles