From fda25be6b10c8212b3ffe78f53e486914f265ce5 Mon Sep 17 00:00:00 2001 From: Dotta Date: Thu, 20 Aug 2026 21:51:57 +0000 Subject: [PATCH] test(db): order grant rollback dependencies Co-Authored-By: Paperclip --- packages/db/src/connections-v3-schema-core-migration.test.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/db/src/connections-v3-schema-core-migration.test.ts b/packages/db/src/connections-v3-schema-core-migration.test.ts index d08b7e16ec6..55814af1b32 100644 --- a/packages/db/src/connections-v3-schema-core-migration.test.ts +++ b/packages/db/src/connections-v3-schema-core-migration.test.ts @@ -25,6 +25,7 @@ describeEmbeddedPostgres("connections v3 schema core migration", () => { cleanups.push(async () => sql.end()); await sql`DELETE FROM "drizzle"."__drizzle_migrations" WHERE "hash" = ${await migrationHash()}`; + await sql`DROP TABLE IF EXISTS "connection_grant_members"`; await sql`DROP TABLE IF EXISTS "connection_grants"`; await sql`DROP INDEX IF EXISTS "tool_connections_company_uid_uq"`; await sql`ALTER TABLE "tool_connections" DROP CONSTRAINT IF EXISTS "tool_connections_company_id_uq"`; @@ -71,6 +72,7 @@ describeEmbeddedPostgres("connections v3 schema core migration", () => { VALUES (${companyId}, ${connectionId}, 'user', 'user-1', true) `).rejects.toMatchObject({ code: "23514" }); + await sql`DROP TABLE IF EXISTS "connection_grant_members"`; await sql`DROP TABLE "connection_grants"`; await sql`DROP INDEX "tool_connections_company_uid_uq"`; await sql`ALTER TABLE "tool_connections" DROP CONSTRAINT "tool_connections_company_id_uq"`;