Skip to content
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;