feat: Add schema check and logging tests for project tasks and notes
This commit is contained in:
10
check-schema.mjs
Normal file
10
check-schema.mjs
Normal 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());
|
||||
Reference in New Issue
Block a user