View file database/upgrades/20210502195001_remove_forumloadpoints_from_settings.php
<?php declare(strict_types=1); use App\Models\Setting; use Phinx\Migration\AbstractMigration; final class RemoveForumloadpointsFromSettings extends AbstractMigration { /** * Migrate Up. */ public function up(): void { Setting::query()->where('name', 'forumloadpoints')->delete(); } /** * Migrate Down. */ public function down(): void { Setting::query()->where('name', 'forumloadpoints')->updateOrCreate([], [ 'name' => 'forumloadpoints', 'value' => '50', ]); } }