feat: add api_version column to workspace_agents (#10418)

Adds api_version to workspace_agents table

Part of #10399
This commit is contained in:
Spike Curtis
2023-10-30 21:30:49 +04:00
committed by GitHub
parent 6b7858c516
commit 7a8da08124
6 changed files with 23 additions and 7 deletions

View File

@ -925,6 +925,7 @@ CREATE TABLE workspace_agents (
ready_at timestamp with time zone,
subsystems workspace_agent_subsystem[] DEFAULT '{}'::workspace_agent_subsystem[],
display_apps display_app[] DEFAULT '{vscode,vscode_insiders,web_terminal,ssh_helper,port_forwarding_helper}'::display_app[],
api_version text DEFAULT ''::text NOT NULL,
CONSTRAINT max_logs_length CHECK ((logs_length <= 1048576)),
CONSTRAINT subsystems_not_none CHECK ((NOT ('none'::workspace_agent_subsystem = ANY (subsystems))))
);