added Session and TimedSession to reset function

This commit is contained in:
Oliver Bryan
2026-01-09 21:53:32 +00:00
parent ce8a116521
commit f04baeb052

View File

@@ -21,6 +21,8 @@ async function resetDatabase() {
try { try {
// drop all tables in the correct order (respecting foreign key constraints) // drop all tables in the correct order (respecting foreign key constraints)
await db.execute(sql`DROP TABLE IF EXISTS "TimedSession" CASCADE`);
await db.execute(sql`DROP TABLE IF EXISTS "Session" CASCADE`);
await db.execute(sql`DROP TABLE IF EXISTS "Issue" CASCADE`); await db.execute(sql`DROP TABLE IF EXISTS "Issue" CASCADE`);
await db.execute(sql`DROP TABLE IF EXISTS "Project" CASCADE`); await db.execute(sql`DROP TABLE IF EXISTS "Project" CASCADE`);
await db.execute(sql`DROP TABLE IF EXISTS "OrganisationMember" CASCADE`); await db.execute(sql`DROP TABLE IF EXISTS "OrganisationMember" CASCADE`);