table('polls'); if ($table->hasColumn('show_results_to_participants')) { $table->removeColumn('show_results_to_participants')->update(); } } /** * @return void */ public function down(): void { $table = $this->table('polls'); if (!$table->hasColumn('show_results_to_participants')) { $table->addColumn('show_results_to_participants', 'boolean', [ 'null' => false, 'default' => true, 'after' => 'is_active', ])->update(); } } }