-
Notifications
You must be signed in to change notification settings - Fork 902
chore: add form_type parameter argument to db #17920
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
Changes from 42 commits
af8bead
a65f276
9996c8c
feaeef7
25d04ad
0317037
a28c610
49b8035
0f3d557
1a9e711
c317769
c11a3c4
bc83309
108ad42
383b64f
0325364
2560400
b630365
b8e121a
c271424
ea5c4b8
827ae32
8beade9
5d9ccb6
6de1b01
44c53ff
85acc1f
2200db7
77d65cb
940b7aa
1ff7012
856ccaa
ce07f00
aa46cab
ad362e0
33c3bde
9c1d812
be9d88e
a3d8446
8229966
24f2e05
3c687e4
f52e789
8ada165
6fabc27
0dc98e4
c74baef
cedf39f
6e9beed
3c97ec7
becfd7c
deaff2a
cab124a
1388d27
716200f
2e9723b
9d52e48
f012e51
ba70555
1876d03
c1187e6
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
ALTER TABLE template_version_parameters DROP COLUMN form_type; | ||
DROP TYPE parameter_form_type; |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
CREATE TYPE parameter_form_type AS ENUM ('', 'error', 'radio', 'dropdown', 'input', 'textarea', 'slider', 'checkbox', 'switch', 'tag-select', 'multi-select'); | ||
COMMENT ON TYPE parameter_form_type | ||
IS 'Enum set should match the terraform provider set. This is defined as future form_types are not supported, and should be rejected. ' | ||
'Always include the empty string for using the default form type.'; | ||
|
||
-- Intentionally leaving the default blank. The provisioner will not re-run any | ||
-- imports to backfill these values. Missing values just have to be handled. | ||
ALTER TABLE template_version_parameters ADD COLUMN form_type parameter_form_type NOT NULL DEFAULT ''; | ||
|
||
COMMENT ON COLUMN template_version_parameters.form_type | ||
IS 'Specify what form_type should be used to render the parameter in the UI. This value should correspond to an enum, but this will not be enforced in the sql. Mistakes here should not be fatal for functional usage.'; | ||
Emyrk marked this conversation as resolved.
Show resolved
Hide resolved
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Uh oh!
There was an error while loading. Please reload this page.