Update Saqel Platform: 2026-08-28 15:11:34

This commit is contained in:
Hamza-Ayed
2026-08-28 15:11:34 +03:00
parent 710695b50b
commit 1c39d4c9cb
+6 -3
View File
@@ -1,6 +1,10 @@
<?php <?php
require_once __DIR__ . '/vendor/autoload.php'; // 1. Load application bootstrap (loads .env from all server paths + PSR-4 autoloading)
require_once __DIR__ . '/app/bootstrap.php';
if (file_exists(__DIR__ . '/vendor/autoload.php')) {
require_once __DIR__ . '/vendor/autoload.php';
}
use App\Core\Database; use App\Core\Database;
@@ -33,7 +37,7 @@ try {
echo "📦 Executing safe schema migrations...\n"; echo "📦 Executing safe schema migrations...\n";
} }
// Execute multiple queries in transaction / batch // Execute multiple queries in batch
$pdo->setAttribute(PDO::ATTR_EMULATE_PREPARES, true); $pdo->setAttribute(PDO::ATTR_EMULATE_PREPARES, true);
$pdo->exec($sql); $pdo->exec($sql);
@@ -42,7 +46,6 @@ try {
// Output Table Status // Output Table Status
$tables = Database::select("SHOW TABLES"); $tables = Database::select("SHOW TABLES");
$dbName = getenv('DB_DATABASE') ?: 'saqelDB'; $dbName = getenv('DB_DATABASE') ?: 'saqelDB';
$colName = "Tables_in_" . $dbName;
echo "📊 Current Tables in Database [{$dbName}]:\n"; echo "📊 Current Tables in Database [{$dbName}]:\n";
echo "--------------------------------------------------------\n"; echo "--------------------------------------------------------\n";