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.
CreateItemsTable
migrate:refresh
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?
, , - , . . , , , ( ), - , . .
, , .
, , , Schema::create(). Scheme::table(). , , .
Schema::create()
Scheme::table()