Dev (#2764)
* 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 * fix(DB): support previous DB upgrade
This commit is contained in:
parent
88addf6e4a
commit
27f1027ad2
2 changed files with 30 additions and 0 deletions
|
|
@ -1,3 +1,18 @@
|
|||
-- To fix a skipped version replacement from the previous release
|
||||
SELECT openreplay_version() = 'v1.19.0-ee'
|
||||
AND EXISTS (SELECT 1
|
||||
FROM information_schema.tables
|
||||
WHERE table_schema = 'spots'
|
||||
AND table_name = 'tasks') AS valid_previous;
|
||||
\gset
|
||||
\if :valid_previous
|
||||
CREATE OR REPLACE FUNCTION openreplay_version()
|
||||
RETURNS text AS
|
||||
$$
|
||||
SELECT 'v1.20.0-ee'
|
||||
$$ LANGUAGE sql IMMUTABLE;
|
||||
\endif
|
||||
|
||||
\set previous_version 'v1.20.0-ee'
|
||||
\set next_version 'v1.21.0-ee'
|
||||
SELECT openreplay_version() AS current_version,
|
||||
|
|
|
|||
|
|
@ -1,3 +1,18 @@
|
|||
-- To fix a skipped version replacement from the previous release
|
||||
SELECT openreplay_version() = 'v1.19.0'
|
||||
AND EXISTS (SELECT 1
|
||||
FROM information_schema.tables
|
||||
WHERE table_schema = 'spots'
|
||||
AND table_name = 'tasks') AS valid_previous;
|
||||
\gset
|
||||
\if :valid_previous
|
||||
CREATE OR REPLACE FUNCTION openreplay_version()
|
||||
RETURNS text AS
|
||||
$$
|
||||
SELECT 'v1.20.0'
|
||||
$$ LANGUAGE sql IMMUTABLE;
|
||||
\endif
|
||||
|
||||
\set previous_version 'v1.20.0'
|
||||
\set next_version 'v1.21.0'
|
||||
SELECT openreplay_version() AS current_version,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue