Ja gdy chcę dodać nową kolumnę do stworzonej już tabeli to dodaję tą kolumnę ręcznie do bazy. W moim wypadku używam Sequel Pro. Następnie dodaję nowo stworzoną kolumnę do Schema aby zachować porządek i spójność z samą bazą.
Np. moja tabela wygląda tak:
Schema::create('pages', function (Blueprint $table) {
$table->increments('id');
$table->integer('author_id')->nullable(false)->unsigned();
$table->integer('visits_count')->unsigned()->default(0);
$table->string('title')->nullable(false);
$table->text('content')->nullable(false);
$table->timestamps();
});
I chcę jeszcze dodać slug, więc dodaję nową kolumnę do kodu:
Schema::create('pages', function (Blueprint $table) {
$table->increments('id');
$table->integer('author_id')->nullable(false)->unsigned();
$table->integer('visits_count')->unsigned()->default(0);
$table->string('title')->nullable(false);
$table->string('slug')->nullable(false)->unique();
$table->text('content')->nullable(false);
$table->timestamps();
});
A następnie ręcznie w samej bazie dodaję kolumnę slug...
Dzięki temu wszystko mam w jednym pliku users, a nie 100 osobnych plików migracji...
I nikt mnie raczej nie namówi do tej przyjętej "poprawnej" metody...