❌ Migrations table does not exist yet!
'; echo 'This means migrate.php has not run successfully.
✅ Migrations table exists
'; // Get all ran migrations $ranMigrations = $pdo->query("SELECT * FROM migrations ORDER BY ran_at DESC")->fetchAll(); if (empty($ranMigrations)) { echo '⚠️ No migrations have been run yet!
'; } else { echo '✅ ' . count($ranMigrations) . ' migration(s) have been run
'; } } } catch (PDOException $e) { echo '❌ Database Error: ' . htmlspecialchars($e->getMessage()) . '
'; } ?>| ID | Migration | Run At |
|---|---|---|
| = htmlspecialchars($migration['id']) ?> | = htmlspecialchars($migration['migration']) ?> |
= htmlspecialchars($migration['ran_at']) ?> |
' . htmlspecialchars($file) . 'Migrations directory not found
'; } ?>Host: = htmlspecialchars(getenv('DB_HOST') ?: 'Not set') ?>
Port: = htmlspecialchars(getenv('DB_PORT') ?: 'Not set') ?>
Database: = htmlspecialchars(getenv('DB_DATABASE') ?: 'Not set') ?>
Username: = htmlspecialchars(getenv('DB_USERNAME') ?: 'Not set') ?>
Password: = getenv('DB_PASSWORD') ? '✅ Set' : '❌ Not set' ?>