Skip to content

Commit 26bd7df

Browse files
committed
create index
1 parent 68b8fe2 commit 26bd7df

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

coderd/database/migrations/000302_add_workspace_agent_devcontainers.up.sql

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,7 @@ COMMENT ON COLUMN workspace_agent_devcontainers.workspace_agent_id IS 'Workspace
1313
COMMENT ON COLUMN workspace_agent_devcontainers.created_at IS 'Creation timestamp';
1414
COMMENT ON COLUMN workspace_agent_devcontainers.workspace_folder IS 'Workspace folder';
1515
COMMENT ON COLUMN workspace_agent_devcontainers.config_path IS 'Path to devcontainer.json.';
16+
17+
CREATE INDEX workspace_agent_devcontainers_workspace_agent_id ON workspace_agent_devcontainers (workspace_agent_id);
18+
19+
COMMENT ON INDEX workspace_agent_devcontainers_workspace_agent_id IS 'Workspace agent foreign key and query index';

0 commit comments

Comments
 (0)