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 <noreply@paperclip.ing>
This commit is contained in:
DottaandPaperclip committed 2026-08-21 02:36:23 +00:00
1 parent 63ddbd43da
commit f5e1ecc059
1 file changed
+1
@@ -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"`;