Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit7fa1112

Browse files
authored
chore: Enforce workspace proxy unique name case insensitive (#7202)
* chore: Enforce workspace proxy unique name case insensitive
1 parent9abfe97 commit7fa1112

File tree

5 files changed

+21
-2
lines changed

5 files changed

+21
-2
lines changed

‎coderd/database/dump.sql‎

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more aboutcustomizing how changed files appear on GitHub.
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
BEGIN;
2+
3+
DROPINDEX IF EXISTS workspace_proxies_lower_name_idx;
4+
5+
-- Enforces no active proxies have the same name.
6+
CREATEUNIQUE INDEXON workspace_proxies (name)WHERE deleted= FALSE;
7+
8+
COMMIT;
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
BEGIN;
2+
3+
-- No one is using this feature yet as of writing this migration, so this is
4+
-- fine. Just delete all workspace proxies to prevent the new index from having
5+
-- conflicts.
6+
DELETEFROM workspace_proxies;
7+
8+
DROPINDEX IF EXISTS workspace_proxies_name_idx;
9+
CREATEUNIQUE INDEXworkspace_proxies_lower_name_idxON workspace_proxies USING btree (lower(name))WHERE deleted= FALSE;
10+
11+
COMMIT;
File renamed without changes.

‎coderd/database/unique_constraint.go‎

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more aboutcustomizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp