From f5e1ecc059d4304a66de6a8ec30c96c593b8e307 Mon Sep 17 00:00:00 2001 From: Dotta Date: Fri, 21 Aug 2026 02:36:23 +0000 Subject: [PATCH] test: drop delegation table before grant rollback Keep the legacy connection migration rollback test compatible with the standing-delegation foreign key. Co-Authored-By: Paperclip --- packages/db/src/connections-v3-schema-core-migration.test.ts | 1 + 1 file changed, 1 insertion(+) 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 55814af1b32..c86257a9617 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_delegations"`; 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"`;