Spaces:
Paused
Paused
Download scripts/debug_schema.ts from Kraft102/widgettdc-api: direct link, hf CLI and curl.
- Browser
- Download file 419 Bytes
-
https://huggingface.co/spaces/Kraft102/widgettdc-api/resolve/main/scripts/debug_schema.ts
- Command line
-
hf download hf://spaces/Kraft102/widgettdc-api/scripts/debug_schema.ts
-
curl -L -o debug_schema.ts https://huggingface.co/spaces/Kraft102/widgettdc-api/resolve/main/scripts/debug_schema.ts
419 Bytes
| 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(); | |