mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
feat: use app wildcards for apps if configured (#4263)
* feat: use app wildcards for apps if configured
* feat: relative_path -> subdomain
- rename relative_path -> subdomain when referring to apps
- migrate workspace_apps.relative_path to workspace_apps.subdomain
- upgrade coder/coder terraform module to 0.5.0
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
-- Add column relative_path of type bool to workspace_apps
|
||||
ALTER TABLE "workspace_apps" ADD COLUMN "relative_path" bool NOT NULL DEFAULT false;
|
||||
|
||||
-- Set column relative_path to the opposite of subdomain
|
||||
UPDATE "workspace_apps" SET "relative_path" = NOT "subdomain";
|
||||
|
||||
-- Drop column subdomain
|
||||
ALTER TABLE "workspace_apps" DROP COLUMN "subdomain";
|
||||
@@ -0,0 +1,8 @@
|
||||
-- Add column subdomain of type bool to workspace_apps
|
||||
ALTER TABLE "workspace_apps" ADD COLUMN "subdomain" bool NOT NULL DEFAULT false;
|
||||
|
||||
-- Set column subdomain to the opposite of relative_path
|
||||
UPDATE "workspace_apps" SET "subdomain" = NOT "relative_path";
|
||||
|
||||
-- Drop column relative_path
|
||||
ALTER TABLE "workspace_apps" DROP COLUMN "relative_path";
|
||||
Reference in New Issue
Block a user