From 5f9a0fe75b51dc37ce193f0ff613b106f1e12801 Mon Sep 17 00:00:00 2001 From: Yasen Pramatarov Date: Thu, 25 Sep 2025 17:26:03 +0300 Subject: [PATCH] Fixes the migrations feedback notice --- public_html/index.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/public_html/index.php b/public_html/index.php index 158e49a..b142e61 100644 --- a/public_html/index.php +++ b/public_html/index.php @@ -192,10 +192,10 @@ try { $runner = new \App\Core\MigrationRunner($db, $migrationsDir); if ($runner->hasPendingMigrations()) { $pending = $runner->listPendingMigrations(); - $msg = 'Database schema is out of date. Pending migrations: ' . implode(', ', $pending) . '. Run: php scripts/migrate.php up'; + $msg = 'Database schema is out of date. There are pending migrations. Run "php scripts/migrate.php up" or use the Admin tools'; // Log and show as a system message $logObject->log('warning', $msg, ['scope' => 'system']); - Feedback::flash('SYSTEM', 'MIGRATIONS_PENDING', $msg, false, true); + Feedback::flash('SYSTEM', 'MIGRATIONS_PENDING', $msg, false, true, false); } } } catch (\Throwable $e) {