Skip to content

Commit 0f713ed

Browse files
committed
add the workspace_modules table, add the module column to workspace_resources
1 parent 12a9d63 commit 0f713ed

File tree

5 files changed

+52
-6
lines changed

5 files changed

+52
-6
lines changed

coderd/database/dump.sql

Lines changed: 12 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
DROP TABLE workspace_modules;
2+
3+
ALTER TABLE
4+
workspace_resources
5+
DROP COLUMN module;
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
ALTER TABLE
2+
workspace_resources
3+
ADD
4+
COLUMN module TEXT;
5+
6+
CREATE TABLE workspace_modules (
7+
id uuid NOT NULL,
8+
job_id uuid NOT NULL,
9+
transition workspace_transition NOT NULL,
10+
source TEXT NOT NULL,
11+
version TEXT NOT NULL,
12+
key TEXT NOT NULL,
13+
created_at timestamp with time zone NOT NULL
14+
);

coderd/database/models.go

Lines changed: 11 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

coderd/database/queries.sql.go

Lines changed: 10 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)