fix: check script import
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
const db = require('../server/db.js');
|
||||
const { db } = require('../server/db.js');
|
||||
|
||||
try {
|
||||
const row = db.prepare(`
|
||||
@@ -6,14 +6,14 @@ try {
|
||||
FROM information_schema.columns
|
||||
WHERE table_name = 'estudiantes' AND column_name = 'bloqueo_qr_biometrico'
|
||||
`).get();
|
||||
console.log('PG_RESULT:', JSON.stringify(row));
|
||||
console.log('PG_COLUMN_INFO:', JSON.stringify(row));
|
||||
|
||||
const sample = db.prepare(`
|
||||
SELECT id, codigo_estudiante, nombre_completo, bloqueo_qr_biometrico
|
||||
FROM estudiantes
|
||||
LIMIT 3
|
||||
`).all();
|
||||
console.log('SAMPLE_ESTUDIANTES:', JSON.stringify(sample));
|
||||
console.log('PG_STUDENTS_SAMPLE:', JSON.stringify(sample));
|
||||
} catch (err) {
|
||||
console.error('ERROR_CHECKING_PG:', err.message);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user