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