mirror of
https://github.com/hex248/sprint.git
synced 2026-02-08 02:33:01 +00:00
added Session and TimedSession to reset function
This commit is contained in:
@@ -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`);
|
||||||
|
|||||||
Reference in New Issue
Block a user