getConnection(); $sqlFile = __DIR__ . '/migrations/005_registro_exams.sql'; $sql = file_get_contents($sqlFile); // Separar sentencias (ignorar comentarios) $statements = array_filter(array_map('trim', explode(';', $sql))); $results = []; foreach ($statements as $stmt) { if (empty($stmt) || preg_match('/^\s*--/', $stmt)) continue; try { $pdo->exec($stmt); $results[] = ['ok' => true, 'sql' => substr(preg_replace('/\s+/', ' ', $stmt), 0, 120)]; } catch (\PDOException $e) { $results[] = ['ok' => false, 'sql' => substr(preg_replace('/\s+/', ' ', $stmt), 0, 120), 'error' => $e->getMessage()]; } } ?> Migración 005

Migración 005 — Registro de Exámenes

$r): ?>
#EstadoSQLError
⚠️ Elimina este archivo del servidor después de ejecutarlo.
Ir a Registro Exámenes