. */ declare(strict_types=1); use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; /** * Class FixNullables. * @codeCoverageIgnore */ class FixNullables extends Migration { /** * Reverse the migrations. */ public function down(): void { } /** * Run the migrations. * * @SuppressWarnings(PHPMD.ShortMethodName) */ public function up(): void { Schema::table( 'rule_groups', static function (Blueprint $table) { $table->text('description')->nullable()->change(); } ); Schema::table( 'rules', static function (Blueprint $table) { $table->text('description')->nullable()->change(); } ); } }