We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bc64c8a commit b4089e8Copy full SHA for b4089e8
lantern_hnsw/sql/updates/0.5.0--0.6.0.sql
@@ -1,4 +1,9 @@
1
-ALTER TABLE lantern.tasks ADD COLUMN pg_cron_jobid bigint default null;
+DO $$
2
+BEGIN
3
+ IF EXISTS (SELECT 1 FROM information_schema.tables WHERE table_schema = 'lantern' AND table_name = 'tasks') THEN
4
+ ALTER TABLE lantern.tasks ADD COLUMN pg_cron_jobid bigint DEFAULT NULL;
5
+ END IF;
6
+END $$;
7
CREATE OR REPLACE FUNCTION _lantern_internal.async_task_finalizer_trigger() RETURNS TRIGGER AS $$
8
DECLARE
9
res RECORD;
0 commit comments