Skip to content

feat: add rich parameters #4311

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 18 commits into from
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Add schema
  • Loading branch information
kylecarbs committed Sep 29, 2022
commit c7e8d4e53097d973824dfa1b46b2b52fbe8f2fcb
29 changes: 29 additions & 0 deletions coderd/database/dump.sql

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Empty file.
21 changes: 21 additions & 0 deletions coderd/database/migrations/000055_parameters.up.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
CREATE TABLE template_version_parameters (
template_version_id uuid not null references template_versions (id) on delete cascade,
name text not null,
description text not null,
type text not null,
immutable boolean not null,
default_value text not null,
icon text not null,
options jsonb not null default '[]'::jsonb,
validation_regex text,
validation_min integer,
validation_max integer,
unique (template_version_id, name)
);

CREATE TABLE workspace_parameters (
workspace_id uuid not null,
name text not null,
value text not null,
unique (workspace_id, name)
);