Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 23295f7 commit 49bab02Copy full SHA for 49bab02
coderd/database/migrations/000003_workspaces.up.sql
@@ -12,8 +12,7 @@ CREATE TABLE workspaces (
12
);
13
14
-- Enforces no active workspaces have the same name.
15
-CREATE UNIQUE INDEX ON workspaces USING btree (owner_id, name) WHERE deleted = FALSE;
16
-CREATE UNIQUE INDEX idx_workspaces_name_lower ON workspaces USING btree (lower(name));
+CREATE UNIQUE INDEX ON workspaces USING btree (owner_id, lower(name)) WHERE deleted = FALSE;
17
18
CREATE TYPE workspace_transition AS ENUM (
19
'start',
0 commit comments