graphql-engine/server/src-rsr/migrations/2_to_3.sql
Ajeet D'Souza a66fb42ce2 Make catalog metadata migrations work on all schema versions (fix #2826) (#2379)
* Separate DB and metadata migrations
* Refactor Migrate.hs to generate list of migrations at compile-time
* Replace ginger with shakespeare to improve performance
* Improve migration log messages
2019-10-11 00:13:57 -05:00

10 lines
255 B
SQL

ALTER TABLE hdb_catalog.event_triggers
ADD COLUMN headers JSON;
ALTER TABLE hdb_catalog.event_log
ADD COLUMN next_retry_at TIMESTAMP;
CREATE INDEX ON hdb_catalog.event_log (trigger_id);
CREATE INDEX ON hdb_catalog.event_invocation_logs (event_id);