6
I have a question about Migrations do Laravel and I believe you can help me.
1 - I created a model with Migration by php artisan make:model Evento -m;
2 - In addition to increments and timestamps I added another field to Migration: $table->string('nome');
3 - I have directed the command php artisan migrate;
My question is, after I went to php Artisan migrate the table was created in the database. And if I need to add one more column to the table in the bank, how should I proceed with the respective Laravel Migration? I must do it directly at the bank or there is a command by Migration?
Miguel, every time I run a "php Artisan migrate", even trying another "alter_table_model" migrate, the command recreates the entire database again. This is a problem if I already have data in the database, no?
– Milrak Pereira Pessoa