Skip to content

feat: Remove organization and user scoped parameters #2007

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

Merged
merged 5 commits into from
Jun 3, 2022
Merged
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
Prev Previous commit
Fix down migration
Signed-off-by: Spike Curtis <spike@coder.com>
  • Loading branch information
spikecurtis committed Jun 3, 2022
commit da754568779747df99c519d840e5b427e5ce4989
1 change: 1 addition & 0 deletions coderd/database/dump.sql

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
@@ -1,2 +1,10 @@
ALTER TYPE parameter_scope ADD VALUE 'organization';
ALTER TYPE parameter_scope ADD VALUE 'user';
CREATE TYPE old_parameter_scope AS ENUM (
'organization',
'template',
'import_job',
'user',
'workspace'
);
ALTER TABLE parameter_values ALTER COLUMN scope TYPE old_parameter_scope USING (scope::text::old_parameter_scope);
DROP TYPE parameter_scope;
ALTER TYPE old_parameter_scope RENAME TO parameter_scope;