fix(ui): default settings values for existing users
This commit is contained in:
parent
f80b7c18a2
commit
054d4a4f72
2 changed files with 18 additions and 0 deletions
|
|
@ -93,6 +93,15 @@ DROP TYPE IF EXISTS events.resource_method;
|
|||
|
||||
ALTER TYPE integration_provider ADD VALUE IF NOT EXISTS 'dynatrace';
|
||||
|
||||
UPDATE users SET settings=COALESCE(settings, '{}'::jsonb) || '{
|
||||
"modules": [
|
||||
"usability-tests",
|
||||
"feature-flags"
|
||||
]
|
||||
}'::jsonb
|
||||
WHERE settings IS NULL
|
||||
OR settings -> 'modules' IS NULL;
|
||||
|
||||
COMMIT;
|
||||
|
||||
\elif :is_next
|
||||
|
|
|
|||
|
|
@ -88,6 +88,15 @@ DROP TYPE IF EXISTS events.resource_method;
|
|||
|
||||
ALTER TYPE integration_provider ADD VALUE IF NOT EXISTS 'dynatrace';
|
||||
|
||||
UPDATE users SET settings=COALESCE(settings, '{}'::jsonb) || '{
|
||||
"modules": [
|
||||
"usability-tests",
|
||||
"feature-flags"
|
||||
]
|
||||
}'::jsonb
|
||||
WHERE settings IS NULL
|
||||
OR settings -> 'modules' IS NULL;
|
||||
|
||||
COMMIT;
|
||||
|
||||
\elif :is_next
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue