File size: 419 Bytes
5a81b95
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
import { getDatabase, initializeDatabase } from '../apps/backend/src/database/index.ts';

async function debugSchema() {
    await initializeDatabase();
    const db = getDatabase();

    try {
        const result = (db as any).exec("PRAGMA table_info(project_lifecycle_events)");
        console.log('Table Info:', JSON.stringify(result, null, 2));
    } catch (e) {
        console.error(e);
    }
}

debugSchema();