Files
coder/coderd/database/migrations/000276_workspace_modules.up.sql
T

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

16 lines
458 B
SQL
Raw Normal View History

ALTER TABLE
workspace_resources
ADD
COLUMN module_path TEXT;
CREATE TABLE workspace_modules (
id uuid NOT NULL,
job_id uuid NOT NULL REFERENCES provisioner_jobs (id) ON DELETE CASCADE,
transition workspace_transition NOT NULL,
source TEXT NOT NULL,
version TEXT NOT NULL,
key TEXT NOT NULL,
created_at timestamp with time zone NOT NULL
);
CREATE INDEX workspace_modules_created_at_idx ON workspace_modules (created_at);