mirror of
https://github.com/hasura/graphql-engine.git
synced 2024-12-15 01:12:56 +03:00
e692c3b20d
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6457 GitOrigin-RevId: 1e76ca71c35cf117da7a073080df8a39e5820ddd
19 lines
566 B
SQL
19 lines
566 B
SQL
CREATE TABLE hdb_catalog.hdb_event_log_cleanups
|
|
(
|
|
id TEXT DEFAULT hdb_catalog.gen_hasura_uuid() PRIMARY KEY,
|
|
trigger_name TEXT NOT NULL,
|
|
scheduled_at TIMESTAMP NOT NULL,
|
|
deleted_event_logs INTEGER,
|
|
deleted_event_invocation_logs INTEGER,
|
|
status TEXT NOT NULL,
|
|
CHECK (status IN ('scheduled', 'paused', 'completed', 'dead')),
|
|
|
|
UNIQUE (trigger_name, scheduled_at)
|
|
);
|
|
|
|
ALTER TABLE hdb_catalog.event_invocation_logs
|
|
ADD COLUMN trigger_name TEXT;
|
|
|
|
ALTER TABLE hdb_catalog.event_invocation_logs
|
|
DROP CONSTRAINT IF EXISTS event_invocation_logs_event_id_fkey;
|