feat: Add schema check and logging tests for project tasks and notes

This commit is contained in:
Chop
2025-06-19 22:13:08 +02:00
parent 3762f2e6f8
commit f0e3bf6eaa
5 changed files with 70 additions and 13 deletions

10
check-schema.mjs Normal file
View File

@@ -0,0 +1,10 @@
import db from "./src/lib/db.js";
console.log("Database schema for notes table:");
console.log(db.prepare("PRAGMA table_info(notes)").all());
console.log("\nDatabase schema for project_tasks table:");
console.log(db.prepare("PRAGMA table_info(project_tasks)").all());
console.log("\nSample notes to check is_system column:");
console.log(db.prepare("SELECT * FROM notes LIMIT 5").all());