hasTable($tableName)) { $table = $schema->getTable($tableName); $fields = [ 'approval_reason' => Types::TEXT, 'bot_capabilities' => Types::TEXT, 'rag_source_description' => Types::TEXT, 'testing_description' => Types::TEXT, 'rejection_reason' => Types::TEXT, ]; foreach ($fields as $column => $type) { if (!$table->hasColumn($column)) { $table->addColumn($column, $type, [ 'notnull' => false, ]); } } if (!$table->hasColumn('testing_enabled_by')) { $table->addColumn('testing_enabled_by', Types::STRING, [ 'notnull' => false, 'length' => 64, ]); } } return $schema; } }