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