Dev (#2531)
* fix(chalice): fixed Math-operators validation refactor(chalice): search for sessions that have events for heatmaps * refactor(chalice): search for sessions that have at least 1 location event for heatmaps * fix(chalice): fixed Math-operators validation refactor(chalice): search for sessions that have events for heatmaps * refactor(chalice): search for sessions that have at least 1 location event for heatmaps * feat(chalice): autocomplete return top 10 with stats * fix(chalice): fixed autocomplete top 10 meta-filters * refactor(DB): rollback script feat(DB): changed users.settings default value
This commit is contained in:
parent
0dbce91c82
commit
966f08e95d
6 changed files with 34 additions and 2 deletions
|
|
@ -53,6 +53,14 @@ CREATE TABLE IF NOT EXISTS or_cache.autocomplete_top_values
|
|||
ALTER TABLE IF EXISTS public.tenants
|
||||
ADD COLUMN IF NOT EXISTS scope_state smallint NOT NULL DEFAULT 2;
|
||||
|
||||
ALTER TABLE IF EXISTS public.users
|
||||
ALTER COLUMN settings SET DEFAULT '{
|
||||
"modules": [
|
||||
"usability-tests",
|
||||
"feature-flags"
|
||||
]
|
||||
}'::jsonb;
|
||||
|
||||
COMMIT;
|
||||
|
||||
\elif :is_next
|
||||
|
|
|
|||
|
|
@ -143,7 +143,12 @@ CREATE TABLE public.users
|
|||
spot_jwt_refresh_iat timestamp without time zone NULL DEFAULT NULL,
|
||||
data jsonb NOT NULL DEFAULT '{}'::jsonb,
|
||||
weekly_report boolean NOT NULL DEFAULT TRUE,
|
||||
settings jsonb DEFAULT NULL,
|
||||
settings jsonb DEFAULT '{
|
||||
"modules": [
|
||||
"usability-tests",
|
||||
"feature-flags"
|
||||
]
|
||||
}'::jsonb,
|
||||
origin text NULL DEFAULT NULL,
|
||||
role_id integer REFERENCES public.roles (role_id) ON DELETE SET NULL,
|
||||
internal_id text NULL DEFAULT NULL,
|
||||
|
|
|
|||
|
|
@ -25,6 +25,9 @@ ALTER TABLE IF EXISTS public.users
|
|||
|
||||
DROP SCHEMA or_cache CASCADE;
|
||||
|
||||
ALTER TABLE IF EXISTS public.tenants
|
||||
DROP COLUMN IF EXISTS scope_state;
|
||||
|
||||
COMMIT;
|
||||
|
||||
\elif :is_next
|
||||
|
|
|
|||
|
|
@ -42,6 +42,14 @@ CREATE TABLE IF NOT EXISTS or_cache.autocomplete_top_values
|
|||
ALTER TABLE IF EXISTS public.tenants
|
||||
ADD COLUMN IF NOT EXISTS scope_state smallint NOT NULL DEFAULT 2;
|
||||
|
||||
ALTER TABLE IF EXISTS public.users
|
||||
ALTER COLUMN settings SET DEFAULT '{
|
||||
"modules": [
|
||||
"usability-tests",
|
||||
"feature-flags"
|
||||
]
|
||||
}'::jsonb;
|
||||
|
||||
COMMIT;
|
||||
|
||||
\elif :is_next
|
||||
|
|
|
|||
|
|
@ -127,7 +127,12 @@ CREATE TABLE public.users
|
|||
spot_jwt_refresh_iat timestamp without time zone NULL DEFAULT NULL,
|
||||
data jsonb NOT NULL DEFAULT '{}'::jsonb,
|
||||
weekly_report boolean NOT NULL DEFAULT TRUE,
|
||||
settings jsonb DEFAULT NULL
|
||||
settings jsonb DEFAULT '{
|
||||
"modules": [
|
||||
"usability-tests",
|
||||
"feature-flags"
|
||||
]
|
||||
}'::jsonb
|
||||
);
|
||||
|
||||
CREATE TABLE public.basic_authentication
|
||||
|
|
|
|||
|
|
@ -25,6 +25,9 @@ ALTER TABLE IF EXISTS public.users
|
|||
|
||||
DROP SCHEMA or_cache CASCADE;
|
||||
|
||||
ALTER TABLE IF EXISTS public.tenants
|
||||
DROP COLUMN IF EXISTS scope_state;
|
||||
|
||||
COMMIT;
|
||||
|
||||
\elif :is_next
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue