From ae5d2f10f863ab8ee9ca2e8c824ee011bb376bca Mon Sep 17 00:00:00 2001 From: LionelB Date: Wed, 24 Feb 2021 15:37:43 +0100 Subject: [PATCH] fix(hasura): fix migrations --- targets/hasura/migrations/1613478848457_add_audit/down.sql | 7 +++---- targets/hasura/migrations/1613499638772_alert_clean/up.sql | 2 +- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/targets/hasura/migrations/1613478848457_add_audit/down.sql b/targets/hasura/migrations/1613478848457_add_audit/down.sql index 6e1b69ac5..62454199a 100644 --- a/targets/hasura/migrations/1613478848457_add_audit/down.sql +++ b/targets/hasura/migrations/1613478848457_add_audit/down.sql @@ -12,6 +12,8 @@ DROP TRIGGER IF EXISTS audit_trigger_row on alerts; DROP TRIGGER IF EXISTS audit_trigger_stm on alerts; DROP TRIGGER IF EXISTS audit_trigger_row on document_relations; DROP TRIGGER IF EXISTS audit_trigger_stm on document_relations; +DROP TRIGGER IF EXISTS audit_trigger_row on documents; +DROP TRIGGER IF EXISTS audit_trigger_stm on documents; DROP TRIGGER IF EXISTS audit_trigger_row on glossary; DROP TRIGGER IF EXISTS audit_trigger_stm on glossary; DROP TRIGGER IF EXISTS audit_trigger_row on kali_blocks; @@ -23,7 +25,4 @@ DROP TRIGGER IF EXISTS audit_trigger_stm on roles; DROP TRIGGER IF EXISTS audit_trigger_row on sources; DROP TRIGGER IF EXISTS audit_trigger_stm on sources; -DROP TRIGGER IF EXISTS documents_audit_update_selective on documents; -DROP TRIGGER IF EXISTS documents_audit_insert_delete on documents; - - +DROP TRIGGER IF EXISTS logged_actions_delete on audit.logged_actions; diff --git a/targets/hasura/migrations/1613499638772_alert_clean/up.sql b/targets/hasura/migrations/1613499638772_alert_clean/up.sql index b12e6713e..8f0af5e04 100644 --- a/targets/hasura/migrations/1613499638772_alert_clean/up.sql +++ b/targets/hasura/migrations/1613499638772_alert_clean/up.sql @@ -6,7 +6,7 @@ END; $body$ LANGUAGE 'plpgsql'; -COMMENT ON FUNCTION delete_old_alerts(duration) IS $body$ +COMMENT ON FUNCTION delete_old_alerts() IS $body$ Remove alerts that are older that a given duration Arguments: