Skip to content

Commit d6f3923

Browse files
committed
test(workspaces): add knowledge_connector to the payer-move lock-order fixture schema
1 parent cef636b commit d6f3923

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

‎apps/sim/lib/workspaces/organization-workspaces.postgres.test.ts‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,14 +58,17 @@ beforeAll(async () => {
5858
CREATE TABLE document (
5959
knowledge_base_id text, file_size bigint, connector_id text, deleted_at timestamp
6060
);
61+
CREATE TABLE knowledge_connector (
62+
knowledge_base_id text, detached_at timestamp, detach_reserved_bytes bigint NOT NULL DEFAULT 0
63+
);
6164
`)
6265
})
6366

6467
beforeEach(async () => {
6568
if (!connection) return
6669
await connection.unsafe(`
6770
TRUNCATE member, organization, invitation, user_stats, workspace, permissions,
68-
workspace_files, knowledge_base, document;
71+
workspace_files, knowledge_base, document, knowledge_connector;
6972
INSERT INTO member VALUES ('owner-membership', 'org', 'org-owner', 'owner');
7073
INSERT INTO organization VALUES ('org', 40);
7174
INSERT INTO invitation VALUES ('invitation', 'org');

0 commit comments

Comments
 (0)