table('polls'); if (!$table->hasColumn('audio')) { $table->addColumn('audio', 'string', ['null' => true, 'default' => null, 'limit' => 40])->update(); } } /** * @return void */ public function down(): void { $table = $this->table('polls'); if ($table->hasColumn('audio')) { $table->removeColumn('audio')->update(); } } }