mirror of
https://github.com/coder/coder.git
synced 2025-07-09 11:45:56 +00:00
12 lines
392 B
PL/PgSQL
12 lines
392 B
PL/PgSQL
BEGIN;
|
|
|
|
-- No one is using this feature yet as of writing this migration, so this is
|
|
-- fine. Just delete all workspace proxies to prevent the new index from having
|
|
-- conflicts.
|
|
DELETE FROM workspace_proxies;
|
|
|
|
DROP INDEX IF EXISTS workspace_proxies_name_idx;
|
|
CREATE UNIQUE INDEX workspace_proxies_lower_name_idx ON workspace_proxies USING btree (lower(name)) WHERE deleted = FALSE;
|
|
|
|
COMMIT;
|