mirror of
https://github.com/coder/coder.git
synced 2025-07-08 11:39:50 +00:00
fix: add index for workspace_resource.job_id
column (#5009)
This commit is contained in:
2
coderd/database/dump.sql
generated
2
coderd/database/dump.sql
generated
@ -624,6 +624,8 @@ CREATE UNIQUE INDEX users_email_lower_idx ON users USING btree (lower(email)) WH
|
||||
|
||||
CREATE UNIQUE INDEX users_username_lower_idx ON users USING btree (lower(username)) WHERE (deleted = false);
|
||||
|
||||
CREATE INDEX workspace_resources_job_id_idx ON workspace_resources USING btree (job_id);
|
||||
|
||||
CREATE UNIQUE INDEX workspaces_owner_id_lower_idx ON workspaces USING btree (owner_id, lower((name)::text)) WHERE (deleted = false);
|
||||
|
||||
ALTER TABLE ONLY api_keys
|
||||
|
@ -0,0 +1 @@
|
||||
DROP INDEX workspace_resources_job_id_idx;
|
@ -0,0 +1 @@
|
||||
CREATE INDEX CONCURRENTLY workspace_resources_job_id_idx ON workspace_resources USING btree (job_id);
|
Reference in New Issue
Block a user