Files
coder/coderd/database/migrations/000618_workspace_agent_script_dependencies.up.sql
T

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

5 lines
262 B
SQL
Raw Normal View History

ALTER TABLE workspace_agent_scripts
ADD COLUMN resource_address TEXT NOT NULL DEFAULT '',
ADD COLUMN dependencies JSONB NOT NULL DEFAULT '[]'::jsonb,
ADD CONSTRAINT workspace_agent_scripts_dependencies_is_array
CHECK (jsonb_typeof(dependencies) = 'array');