graphql-engine/server/src-rsr/migrations/26_to_27.sql
2019-11-13 12:59:19 +05:30

10 lines
269 B
SQL

ALTER TABLE hdb_catalog.event_log
ADD COLUMN archived BOOLEAN NOT NULL DEFAULT FALSE;
UPDATE hdb_catalog.event_log
SET archived = 't'
WHERE
trigger_name NOT IN (SELECT name from hdb_catalog.event_triggers);
CREATE INDEX ON hdb_catalog.event_log (delivered);