setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); $sqlFile = __DIR__ . '/../db/schema_phase15_menu_reorganize.sql'; if (!file_exists($sqlFile)) { die("SQL file not found: $sqlFile\n"); } $sql = file_get_contents($sqlFile); $pdo->exec($sql); echo "Menu reorganization (Phase 15) completed successfully!\n";