|
|
@ -31,6 +31,13 @@ describe('Database', () => {
|
|
|
|
expect(tasksColumns).toContain('description');
|
|
|
|
expect(tasksColumns).toContain('description');
|
|
|
|
expect(tasksColumns).toContain('due_date');
|
|
|
|
expect(tasksColumns).toContain('due_date');
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Verify groups table has last_verified column
|
|
|
|
|
|
|
|
const groupsColumns = db
|
|
|
|
|
|
|
|
.query("PRAGMA table_info(groups)")
|
|
|
|
|
|
|
|
.all()
|
|
|
|
|
|
|
|
.map((c: any) => c.name);
|
|
|
|
|
|
|
|
expect(groupsColumns).toContain('last_verified');
|
|
|
|
|
|
|
|
|
|
|
|
// Verify foreign key constraint
|
|
|
|
// Verify foreign key constraint
|
|
|
|
const fkInfo = db
|
|
|
|
const fkInfo = db
|
|
|
|
.query("PRAGMA foreign_key_list(task_assignments)")
|
|
|
|
.query("PRAGMA foreign_key_list(task_assignments)")
|
|
|
|