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

Commit9e218f7

Browse files
committed
chore: Enforce workspace proxy unique name case insensitive
1 parentf94ac55 commit9e218f7

File tree

2 files changed

+19
-0
lines changed

2 files changed

+19
-0
lines changed
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;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp