fix(sql): version check for psql migration
Signed-off-by: rjshrjndrn <rjshrjndrn@gmail.com>
This commit is contained in:
parent
4c7f2edd57
commit
790e1b24da
1 changed files with 3 additions and 3 deletions
|
|
@ -1,5 +1,5 @@
|
|||
\set previous_version 'v1.15.0-ee'
|
||||
\set next_version 'v1.16.0-ee'
|
||||
\set previous_version 'v1.15.0'
|
||||
\set next_version 'v1.16.0'
|
||||
SELECT openreplay_version() AS current_version,
|
||||
openreplay_version() = :'previous_version' AS valid_previous,
|
||||
openreplay_version() = :'next_version' AS is_next
|
||||
|
|
@ -117,4 +117,4 @@ COMMIT;
|
|||
\echo new version detected :'next_version', nothing to do
|
||||
\else
|
||||
\warn skipping DB upgrade of :'next_version', expected previous version :'previous_version', found :'current_version'
|
||||
\endif
|
||||
\endif
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue