fix: http trigger routers cache version sequence (#5755)

* fix: http trigger routers cache version sequence

* nit
This commit is contained in:
HugoCasa
2025-05-15 21:59:30 +02:00
committed by GitHub
parent f488903635
commit d53bceb800
2 changed files with 10 additions and 0 deletions
@@ -0,0 +1 @@
-- Add down migration script here
@@ -0,0 +1,9 @@
-- Add up migration script here
-- this makes sure that the first time nextval is called, 2 is returned
-- otherwise, `SELECT last_value from http_trigger_version_seq;` would return 1 before and after the first nextval call
-- which would not refresh the routers cache after the first create/update/delete
SELECT setval(
'http_trigger_version_seq',
(SELECT last_value FROM http_trigger_version_seq),
true
);